nu.xom.tests
Class VerifierTest

java.lang.Object
  extended by TestCase
      extended by nu.xom.tests.XOMTestCase
          extended by nu.xom.tests.VerifierTest

public class VerifierTest
extends XOMTestCase

Tests to make sure name and character rules are enforced. The rules are tested by comparison with the rules in the org.apache.xerces.util.XMLChar class. This is an undocumented class so this is potentially dangerous in the long run. it also means the tests depend on Xerces 2 specifically. However, this dependence does not extend into the core API.

Version:
1.1d7
Author:
Elliotte Rusty Harold

Constructor Summary
VerifierTest(java.lang.String name)
           
 
Method Summary
 void testAllASCIIDigitsAllowedInHostNames()
           
 void testAllASCIIDigitsAllowedInQueryStrings()
           
 void testAllASCIIDigitsAllowedInUserInfo()
           
 void testAllASCIILettersAllowedInHostNames()
           
 void testAllASCIILettersAllowedInQueryStrings()
           
 void testAllASCIILettersAllowedInSchemeNames()
           
 void testAllASCIILettersAllowedInUserInfo()
           
 void testAllASCIILettersAllowedToBeginSchemeNames()
           
 void testAllSubDelimsAllowedInHost()
           
 void testAllSubDelimsAllowedInPath()
           
 void testAllSubDelimsAllowedInQueryString()
           
 void testAllSubDelimsAllowedInUserInfo()
           
 void testAllUnreservedPunctuationMarksAllowedInHost()
           
 void testAllUnreservedPunctuationMarksAllowedInQueryString()
           
 void testAllUnreservedPunctuationMarksAllowedInUserInfo()
           
 void testAtSignAllowedInQueryString()
           
 void testAttributeNameThatBeginsWithAColon()
           
 void testAttributeNameThatEndsWithAColon()
           
 void testBadHexEscapeInHost()
           
 void testBadHexEscapeInQueryString()
           
 void testBadHexEscapeInUserInfo()
           
 void testC0Controls()
           
 void testC0ControlsNotAllowedInPath()
           
 void testC0ControlsNotAllowedInQueryString()
           
 void testC0ControlsNotAllowedInUserInfo()
           
 void testColonAllowedInQueryString()
           
 void testDelimCharactersNotAllowedInUserInfo()
           
 void testDelimsNotAllowedInHost()
           
 void testDelimsNotAllowedInQueryStrings()
           
 void testElementNames()
           
 void testElementNameThatBeginsWithAColon()
           
 void testElementNameThatEndsWithAColon()
           
 void testEmptyHostAllowed()
           
 void testFragmentIDContainsFirstColon()
           
 void testFragmentIDContainsQuestionMark()
           
 void testHexEscapeInHost()
           
 void testHexEscapeInUserInfo()
           
 void testHostNameTooLong()
           
 void testIllegalIP6Addresses()
           
 void testIllegalIRIs()
           
 void testLegalIP6Addresses()
           
 void testLegalIRIs()
           
 void testMalformedURI()
           
 void testNonASCIICharactersNotAllowedInHostNames()
           
 void testNonASCIICharactersNotAllowedInQueryStrings()
           
 void testNonASCIICharactersNotAllowedInUserInfo()
           
 void testNonASCIILettersNotAllowedToBeginSchemeNames()
           
 void testQuestionMarkAllowedInQueryString()
           
 void testQuestionmarkIsNotAHexDigit()
           
 void testSlashAllowedInQueryString()
           
 void testSymbolsNotAllowedInSchemeNames()
           
 void testUnwiseCharactersNotAllowedInHost()
           
 void testUnwiseCharactersNotAllowedInPath()
           
 void testUnwiseCharactersNotAllowedInQueryStrings()
           
 void testUnwiseCharactersNotAllowedInUserInfo()
           
 
Methods inherited from class nu.xom.tests.XOMTestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifierTest

public VerifierTest(java.lang.String name)
Method Detail

testElementNames

public void testElementNames()

testLegalIRIs

public void testLegalIRIs()

testAllASCIILettersAllowedToBeginSchemeNames

public void testAllASCIILettersAllowedToBeginSchemeNames()

testAllASCIILettersAllowedInSchemeNames

public void testAllASCIILettersAllowedInSchemeNames()

testAllASCIILettersAllowedInQueryStrings

public void testAllASCIILettersAllowedInQueryStrings()

testAllASCIIDigitsAllowedInQueryStrings

public void testAllASCIIDigitsAllowedInQueryStrings()

testSlashAllowedInQueryString

public void testSlashAllowedInQueryString()

testQuestionMarkAllowedInQueryString

public void testQuestionMarkAllowedInQueryString()

testColonAllowedInQueryString

public void testColonAllowedInQueryString()

testAtSignAllowedInQueryString

public void testAtSignAllowedInQueryString()

testNonASCIICharactersNotAllowedInQueryStrings

public void testNonASCIICharactersNotAllowedInQueryStrings()

testDelimsNotAllowedInQueryStrings

public void testDelimsNotAllowedInQueryStrings()

testUnwiseCharactersNotAllowedInQueryStrings

public void testUnwiseCharactersNotAllowedInQueryStrings()

testUnwiseCharactersNotAllowedInUserInfo

public void testUnwiseCharactersNotAllowedInUserInfo()

testUnwiseCharactersNotAllowedInHost

public void testUnwiseCharactersNotAllowedInHost()

testDelimsNotAllowedInHost

public void testDelimsNotAllowedInHost()

testUnwiseCharactersNotAllowedInPath

public void testUnwiseCharactersNotAllowedInPath()

testAllASCIILettersAllowedInHostNames

public void testAllASCIILettersAllowedInHostNames()

testAllASCIIDigitsAllowedInHostNames

public void testAllASCIIDigitsAllowedInHostNames()

testNonASCIICharactersNotAllowedInHostNames

public void testNonASCIICharactersNotAllowedInHostNames()

testAllASCIILettersAllowedInUserInfo

public void testAllASCIILettersAllowedInUserInfo()

testAllSubDelimsAllowedInUserInfo

public void testAllSubDelimsAllowedInUserInfo()

testAllSubDelimsAllowedInPath

public void testAllSubDelimsAllowedInPath()

testAllUnreservedPunctuationMarksAllowedInUserInfo

public void testAllUnreservedPunctuationMarksAllowedInUserInfo()

testAllUnreservedPunctuationMarksAllowedInHost

public void testAllUnreservedPunctuationMarksAllowedInHost()

testAllSubDelimsAllowedInQueryString

public void testAllSubDelimsAllowedInQueryString()

testAllSubDelimsAllowedInHost

public void testAllSubDelimsAllowedInHost()

testAllUnreservedPunctuationMarksAllowedInQueryString

public void testAllUnreservedPunctuationMarksAllowedInQueryString()

testAllASCIIDigitsAllowedInUserInfo

public void testAllASCIIDigitsAllowedInUserInfo()

testNonASCIICharactersNotAllowedInUserInfo

public void testNonASCIICharactersNotAllowedInUserInfo()

testDelimCharactersNotAllowedInUserInfo

public void testDelimCharactersNotAllowedInUserInfo()

testMalformedURI

public void testMalformedURI()

testFragmentIDContainsQuestionMark

public void testFragmentIDContainsQuestionMark()

testFragmentIDContainsFirstColon

public void testFragmentIDContainsFirstColon()

testEmptyHostAllowed

public void testEmptyHostAllowed()

testC0ControlsNotAllowedInUserInfo

public void testC0ControlsNotAllowedInUserInfo()

testC0ControlsNotAllowedInPath

public void testC0ControlsNotAllowedInPath()

testC0ControlsNotAllowedInQueryString

public void testC0ControlsNotAllowedInQueryString()

testHostNameTooLong

public void testHostNameTooLong()

testSymbolsNotAllowedInSchemeNames

public void testSymbolsNotAllowedInSchemeNames()

testNonASCIILettersNotAllowedToBeginSchemeNames

public void testNonASCIILettersNotAllowedToBeginSchemeNames()

testBadHexEscapeInQueryString

public void testBadHexEscapeInQueryString()

testHexEscapeInUserInfo

public void testHexEscapeInUserInfo()

testHexEscapeInHost

public void testHexEscapeInHost()

testBadHexEscapeInUserInfo

public void testBadHexEscapeInUserInfo()

testBadHexEscapeInHost

public void testBadHexEscapeInHost()

testQuestionmarkIsNotAHexDigit

public void testQuestionmarkIsNotAHexDigit()

testIllegalIRIs

public void testIllegalIRIs()

testLegalIP6Addresses

public void testLegalIP6Addresses()

testIllegalIP6Addresses

public void testIllegalIP6Addresses()

testC0Controls

public void testC0Controls()

testAttributeNameThatEndsWithAColon

public void testAttributeNameThatEndsWithAColon()

testAttributeNameThatBeginsWithAColon

public void testAttributeNameThatBeginsWithAColon()

testElementNameThatEndsWithAColon

public void testElementNameThatEndsWithAColon()

testElementNameThatBeginsWithAColon

public void testElementNameThatBeginsWithAColon()


Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu