org.apache.maven.plugin.javadoc
Class JavadocUtilTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.javadoc.JavadocUtilTest
All Implemented Interfaces:
junit.framework.Test

public class JavadocUtilTest
extends PlexusTestCase

Version:
$Id: JavadocUtilTest.html 829396 2012-08-19 17:35:19Z hboutemy $
Author:
Vincent Siveton

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
JavadocUtilTest()
           
 
Method Summary
protected static boolean isWebSiteOnline(org.apache.maven.settings.Settings settings, Logger logger, String websiteUrl)
           
 void testCopyJavadocResources()
          Method to test copyJavadocResources()
 void testFetchURL()
          Method to test fetchURL()
 void testHideProxyPassword()
          Method to test the hiding proxy password.
 void testParseJavadocMemory()
          Method to test the javadoc memory parsing.
 void testParseJavadocVersion()
          Method to test the javadoc version parsing.
 void testPruneDirs()
          Method to test pruneDirs()
 void testUnifyPathSeparator()
          Method to test unifyPathSeparator()
 void testValidateEncoding()
          Method to test the validate encoding parsing.
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavadocUtilTest

public JavadocUtilTest()
Method Detail

testParseJavadocVersion

public void testParseJavadocVersion()
                             throws Exception
Method to test the javadoc version parsing.

Throws:
Exception - if any

testParseJavadocMemory

public void testParseJavadocMemory()
                            throws Exception
Method to test the javadoc memory parsing.

Throws:
Exception - if any

testValidateEncoding

public void testValidateEncoding()
                          throws Exception
Method to test the validate encoding parsing.

Throws:
Exception - if any

testHideProxyPassword

public void testHideProxyPassword()
                           throws Exception
Method to test the hiding proxy password.

Throws:
Exception - if any

testFetchURL

public void testFetchURL()
                  throws Exception
Method to test fetchURL()

Throws:
Exception - if any

testCopyJavadocResources

public void testCopyJavadocResources()
                              throws Exception
Method to test copyJavadocResources()

Throws:
Exception - if any

testPruneDirs

public void testPruneDirs()
                   throws Exception
Method to test pruneDirs()

Throws:
Exception - if any

testUnifyPathSeparator

public void testUnifyPathSeparator()
                            throws Exception
Method to test unifyPathSeparator()

Throws:
Exception - if any

isWebSiteOnline

protected static boolean isWebSiteOnline(org.apache.maven.settings.Settings settings,
                                         Logger logger,
                                         String websiteUrl)
Parameters:
settings - could be null
logger - could be null
websiteUrl - not null
Returns:
true if we are able to fetch websiteUrl, false otherwise.
Since:
2.6.1


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.