@Test public void testPostOrder3() { Tree big = TreeIoUtils.fromXml(getClass().getResourceAsStream(DUMMY_BIG)); List<Tree> lst = TreeUtils.postOrder(big); Iterator<Tree> it = TreeUtils.postOrderIterator(big); compareListIterator(lst, it); }
@Before // FIXME Could it be before class ? public void init() { src = root = TreeIoUtils.fromXml(getClass().getResourceAsStream(DUMMY_SRC)); dst = TreeIoUtils.fromXml(getClass().getResourceAsStream(DUMMY_DST)); big = TreeIoUtils.fromXml(getClass().getResourceAsStream(DUMMY_BIG)); }