java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.htmlparser.tests.ParserTestCase
org.htmlparser.tests.scannersTests.ImageScannerTest
- All Implemented Interfaces:
- junit.framework.Test
- public class ImageScannerTest
- extends org.htmlparser.tests.ParserTestCase
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.htmlparser.tests.ParserTestCase |
assertHiddenIDTagPresent, assertNodeCount, assertNodeCount, assertSameType, assertStringEquals, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters |
| 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 |
ImageScannerTest
public ImageScannerTest(java.lang.String name)
testDynamicRelativeImageScan
public void testDynamicRelativeImageScan()
throws org.htmlparser.util.ParserException
testEvaluate
public void testEvaluate()
testExtractImageLocnInvertedCommasBug
public void testExtractImageLocnInvertedCommasBug()
throws org.htmlparser.util.ParserException
- This is the reproduction of a bug which causes a null pointer exception
testPlaceHolderImageScan
public void testPlaceHolderImageScan()
throws org.htmlparser.util.ParserException
- This test has been improved to check for params in the image tag, based
on requirement by Annette Doyle. Thereby an important bug was detected.
testRelativeImageScan
public void testRelativeImageScan()
throws org.htmlparser.util.ParserException
testRelativeImageScan2
public void testRelativeImageScan2()
throws org.htmlparser.util.ParserException
testRelativeImageScan3
public void testRelativeImageScan3()
throws org.htmlparser.util.ParserException
testImageWithSpaces
public void testImageWithSpaces()
throws org.htmlparser.util.ParserException
- Test image url which contains spaces in it. This was actually a bug
reported by Sam Joseph (sam@neurogrid.net)
testImageWithNewLineChars
public void testImageWithNewLineChars()
throws org.htmlparser.util.ParserException
testImageTagsFromYahoo
public void testImageTagsFromYahoo()
throws org.htmlparser.util.ParserException
- Test case to reproduce bug reported by Annette
testImageTagsFromYahooWithAllScannersRegistered
public void testImageTagsFromYahooWithAllScannersRegistered()
throws org.htmlparser.util.ParserException
- Test case to reproduce bug reported by Annette
testImageTagOnMultipleLines
public void testImageTagOnMultipleLines()
throws org.htmlparser.util.ParserException
- This is the reproduction of a bug reported by Annette Doyle
testDirectRelativeLinks
public void testDirectRelativeLinks()
throws org.htmlparser.util.ParserException
testMissingEqualTo
public void testMissingEqualTo()
throws org.htmlparser.util.ParserException
- Based on a page submitted by Claude Duguay, the image tag has IMG
SRC"somefile.jpg" - a missing equal to sign