Thread: [Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/scannersTests CompositeTagScannerTest.java,1.33
Brought to you by:
derrickoswald
From: <so...@us...> - 2003-08-24 18:41:39
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests In directory sc8-pr-cvs1:/tmp/cvs-serv15480/src/org/htmlparser/tests/scannersTests Modified Files: CompositeTagScannerTest.java Log Message: removed unused local variables Index: CompositeTagScannerTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests/CompositeTagScannerTest.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** CompositeTagScannerTest.java 23 Aug 2003 17:14:45 -0000 1.33 --- CompositeTagScannerTest.java 24 Aug 2003 18:41:36 -0000 1.34 *************** *** 77,81 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",0,customTag.getChildCount()); assertTrue("custom tag should be xml end tag",customTag.isEmptyXmlTag()); --- 77,80 ---- *************** *** 92,96 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",0,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 91,94 ---- *************** *** 109,113 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 107,110 ---- *************** *** 119,123 **** Node child = customTag.childAt(0); assertType("child",StringNode.class,child); - StringNode text = (StringNode)child; assertStringEquals("child text","Hello",child.toPlainTextString()); } --- 116,119 ---- *************** *** 130,134 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 126,129 ---- *************** *** 140,144 **** Node child = customTag.childAt(0); assertType("child",Tag.class,child); - Tag tag = (Tag)child; assertStringEquals("child html","<HELLO>",child.toHtml()); } --- 135,138 ---- *************** *** 152,156 **** parser.addScanner(new AnotherScanner()); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 146,149 ---- *************** *** 261,265 **** createParser("<custom>"); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",0,customTag.getChildCount()); assertFalse("custom tag should be xml end tag",customTag.isEmptyXmlTag()); --- 254,257 ---- *************** *** 278,282 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",2,customTag.getChildCount()); assertFalse("custom tag should be xml end tag",customTag.isEmptyXmlTag()); --- 270,273 ---- *************** *** 295,299 **** ); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",2,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 286,289 ---- *************** *** 319,323 **** parseAndAssertNodeCount(2); CustomTag customTag = (CustomTag)node[0]; - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 309,312 ---- *************** *** 353,357 **** CustomTag customTag = (CustomTag)node[1]; - int x = customTag.getChildCount(); assertEquals("child count",0,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 342,345 ---- *************** *** 372,376 **** parser.addScanner(new AnotherScanner(true)); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should be xml end tag",customTag.isEmptyXmlTag()); --- 360,363 ---- *************** *** 395,399 **** parser.addScanner(new AnotherScanner(true)); CustomTag customTag = parseCustomTag(2); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 382,385 ---- *************** *** 427,431 **** parser.addScanner(new AnotherScanner(true)); CustomTag customTag = parseCustomTag(1); - int x = customTag.getChildCount(); assertEquals("child count",1,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 413,416 ---- *************** *** 450,454 **** CustomTag customTag = (CustomTag)node[0]; - int x = customTag.getChildCount(); assertEquals("child count",0,customTag.getChildCount()); assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag()); --- 435,438 ---- |