net.sourceforge.pmd.lang.xml
Class XmlParserTest

java.lang.Object
  extended by net.sourceforge.pmd.lang.xml.XmlParserTest

public class XmlParserTest
extends Object

Unit test for the XmlParser.


Constructor Summary
XmlParserTest()
           
 
Method Summary
 void testDefaultParsing()
          Verifies the default parsing behavior of the XML parser.
 void testDefaultParsingNamespaces()
          Verifies the default parsing behavior of the XML parser with namespaces.
 void testLineNumbers()
          See bug #1054: XML Rules ever report a line -1 and not the line/column where the error occurs
 void testParsingCoalescingEnabled()
          Verifies the parsing behavior of the XML parser with coalescing enabled.
 void testParsingDoNotExpandEntities()
          Verifies the parsing behavior of the XML parser if entities are not expanded.
 void testParsingIgnoreComments()
          Verifies the parsing behavior of the XML parser if ignoring comments.
 void testParsingIgnoreElementContentWhitespace()
          Verifies the parsing behavior of the XML parser if ignoring whitespaces in elements.
 void testParsingNotNamespaceAware()
          Verifies the default parsing behavior of the XML parser with namespaces but not namespace aware.
 void testParsingWithValidation()
          Verifies the parsing behavior of the XML parser with validation on.
 void testWithProcessingInstructions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParserTest

public XmlParserTest()
Method Detail

testLineNumbers

public void testLineNumbers()
                     throws Exception
See bug #1054: XML Rules ever report a line -1 and not the line/column where the error occurs

Throws:
Exception - any error

testDefaultParsing

public void testDefaultParsing()
Verifies the default parsing behavior of the XML parser.


testParsingCoalescingEnabled

public void testParsingCoalescingEnabled()
Verifies the parsing behavior of the XML parser with coalescing enabled.


testParsingDoNotExpandEntities

public void testParsingDoNotExpandEntities()
Verifies the parsing behavior of the XML parser if entities are not expanded.


testParsingIgnoreComments

public void testParsingIgnoreComments()
Verifies the parsing behavior of the XML parser if ignoring comments.


testParsingIgnoreElementContentWhitespace

public void testParsingIgnoreElementContentWhitespace()
Verifies the parsing behavior of the XML parser if ignoring whitespaces in elements.


testDefaultParsingNamespaces

public void testDefaultParsingNamespaces()
Verifies the default parsing behavior of the XML parser with namespaces.


testParsingNotNamespaceAware

public void testParsingNotNamespaceAware()
Verifies the default parsing behavior of the XML parser with namespaces but not namespace aware.


testParsingWithValidation

public void testParsingWithValidation()
                               throws UnsupportedEncodingException
Verifies the parsing behavior of the XML parser with validation on.

Throws:
UnsupportedEncodingException - error

testWithProcessingInstructions

public void testWithProcessingInstructions()


Copyright © 2002–2015 InfoEther. All rights reserved.