if ("Foo".equals(n.getText()))
{
if (foundFoo)
fail("Already found 'Foo'!");
foundFoo = true;
Node node = (Node)n;
assertEquals(1,node.getLine());
assertEquals(6,node.getColumn());
}
else if ("name".equals(n.getText()))
{
if (foundName)
fail("Already found 'name'!");
foundName = true;
Node node = (Node)n;
assertEquals(2,node.getLine());
assertEquals(9,node.getColumn());
}
}
assertTrue(foundFoo);
assertTrue(foundName);
}