* Testcase to reproduce a bug reported by Cedric Rosa, on not ending the
* title tag correctly, we would get null pointer exceptions..
*/
public void testIncompleteTitle() throws ParserException {
createParser("<TITLE>SISTEMA TERRA, VOL. VI , No. 1-3, December 1997</TITLE\n" + "</HEAD>");
TitleScanner titleScanner = new TitleScanner("-t");
parser.addScanner(titleScanner);
parseAndAssertNodeCount(2);
assertTrue("First Node is a title tag", node[0] instanceof TitleTag);
TitleTag titleTag = (TitleTag) node[0];
assertEquals("Title", "SISTEMA TERRA, VOL. VI , No. 1-3, December 1997", titleTag.getTitle());