org.apache.maven.wagon.shared.http
Class HtmlFileListParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.wagon.shared.http.HtmlFileListParserTest
All Implemented Interfaces:
Test

public class HtmlFileListParserTest
extends TestCase

Unit Tests for the HtmlFileListParser


Constructor Summary
HtmlFileListParserTest()
           
 
Method Summary
 void testParseCommonsLang()
          Example showing jetty directory browsing of commons-lang
 void testParseIbiblio()
           
 void testParseJetty()
          Test of an html which is improperly formatted, and contains full host-specific paths to the resources.
 void testParseJettyWithNonNormalizedBaseURI()
          Test of an html which is improperly formatted, contains full host-specific paths to the resources and uses non-normalized base URI
 void testParseMevenIde()
          Using repository.codehaus.org output as an example.
 void testParseMirror()
           
 void testParseNekoHtml()
          Example of output from repo1.maven.org This example is of nekohtml specifically.
 void testParseNetSourceforge()
          Example of detecting directories on repo1.maven.org
 void testParseOrgCodehaus()
          Another larger example of the directory link detection on repository.codehaus.org
 void testParsePeopleApacheOrg()
          Test the output found from apache httpd with fancy indexing and dav module.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HtmlFileListParserTest

public HtmlFileListParserTest()
Method Detail

testParseCommonsLang

public void testParseCommonsLang()
                          throws TransferFailedException
Example showing jetty directory browsing of commons-lang

Throws:
TransferFailedException

testParseIbiblio

public void testParseIbiblio()
                      throws Exception
Throws:
Exception

testParseJetty

public void testParseJetty()
                    throws Exception
Test of an html which is improperly formatted, and contains full host-specific paths to the resources.

Throws:
Exception

testParseJettyWithNonNormalizedBaseURI

public void testParseJettyWithNonNormalizedBaseURI()
                                            throws Exception
Test of an html which is improperly formatted, contains full host-specific paths to the resources and uses non-normalized base URI

Throws:
Exception

testParseMevenIde

public void testParseMevenIde()
                       throws TransferFailedException
Using repository.codehaus.org output as an example. This is an example of an older RHEL installation of apache httpd with old fancy indexing output This example tests how to detect directories properly.

Throws:
TransferFailedException

testParseMirror

public void testParseMirror()
                     throws Exception
Throws:
Exception

testParseNekoHtml

public void testParseNekoHtml()
                       throws TransferFailedException
Example of output from repo1.maven.org This example is of nekohtml specifically.

Throws:
TransferFailedException

testParseNetSourceforge

public void testParseNetSourceforge()
                             throws TransferFailedException
Example of detecting directories on repo1.maven.org

Throws:
TransferFailedException

testParseOrgCodehaus

public void testParseOrgCodehaus()
                          throws TransferFailedException
Another larger example of the directory link detection on repository.codehaus.org

Throws:
TransferFailedException

testParsePeopleApacheOrg

public void testParsePeopleApacheOrg()
                              throws TransferFailedException
Test the output found from apache httpd with fancy indexing and dav module. Using people.apache.org output as source material.

Throws:
TransferFailedException


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.