NodeEvent e1 = (NodeEvent) event;
NodeEvent e2 = (NodeEvent) newEvent;
assertEquals(e1.getAnchor(), e2.getAnchor());
}
if (event instanceof CollectionStartEvent) {
CollectionStartEvent e1 = (CollectionStartEvent) event;
CollectionStartEvent e2 = (CollectionStartEvent) newEvent;
assertEquals(e1.getTag(), e2.getTag());
}
if (event instanceof ScalarEvent) {
ScalarEvent e1 = (ScalarEvent) event;
ScalarEvent e2 = (ScalarEvent) newEvent;
if (e1.getImplicit().canOmitTagInPlainScalar() == e2.getImplicit()
.canOmitTagInPlainScalar()
&& e1.getImplicit().canOmitTagInNonPlainScalar() == e2
.getImplicit().canOmitTagInNonPlainScalar()) {
} else {
if ((e1.getTag() == null || e2.getTag() == null)
|| e1.getTag().equals(e2.getTag())) {
} else {
System.out.println("tag1: " + e1.getTag());
System.out.println("tag2: " + e2.getTag());
fail("in file: " + file);
}
}
assertEquals(e1.getValue(), e2.getValue());
}
}
} catch (Exception e) {
System.out.println("Failed File: " + file);
// fail("Failed File: " + file + "; " + e.getMessage());