@Test public void shouldReturnJustOneElementIfTheTreeContainsJustOneElementRecursive() { BinaryNode<Integer> root = new BinaryNode<Integer>(0); List<BinaryNode<Integer>> result = binaryTreeInOrder.getRecursive(root); List<BinaryNode<Integer>> expected = Arrays.asList(root); assertEquals(expected, result); }
public List<BinaryNode<Integer>> getRecursive(BinaryNode root) { validateBinaryNode(root); return getInner(root); }
BinaryTreeInOrder { public List<BinaryNode<Integer>> getRecursive(BinaryNode root) { validateBinaryNode(root); return getInner(root); } }
BinaryTreeInOrder { public List<BinaryNode<Integer>> getRecursive(BinaryNode root) { validateBinaryNode(root); return getInner(root); }  }
BinaryTreeInOrder { public List<BinaryNode<Integer>> getRecursive(BinaryNode root) { validateBinaryNode(root); return getInner(root); }  List<BinaryNode<Integer>> getRecursive(BinaryNode root); List<BinaryNode<Integer>> getIterative(BinaryNode<Integer> root); }
BinaryTreeInOrder { public List<BinaryNode<Integer>> getRecursive(BinaryNode root) { validateBinaryNode(root); return getInner(root); }  List<BinaryNode<Integer>> getRecursive(BinaryNode root); List<BinaryNode<Integer>> getIterative(BinaryNode<Integer> root);  }