TagProcessor tp = new TagProcessor();
int count = 0;
Tag tag = null;
for (String line : lines)
{
tag = tp.processLine(line);
if (count++ < lines.length - 1)
{
assertNull(tag);
}
}
assertNotNull(tag);
assertEquals(TAG_VM_VERSION, tag.getName());
List<Tag> children = tag.getChildren();
assertEquals(4, children.size());
Tag tagTweakVM = children.get(0);
assertEquals(TAG_TWEAK_VM, tagTweakVM.getName());
assertEquals(null, tagTweakVM.getTextContent());
Tag tagRelease = children.get(2);
assertEquals(TAG_RELEASE, tagRelease.getName());
assertEquals(line6, tagRelease.getTextContent());
}