@Test public void testExampleCration() { GenericBinaryTreeUsage usage = new GenericBinaryTreeUsage(); BinaryTree<String> empty = _EmptyTree(); assertEquals(_Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))), usage.createExample()); }
public BinaryTree<String> createExample() { BinaryTree<String> empty = BinaryTree.<String>_EmptyTree(); return _Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))); }
GenericBinaryTreeUsage { public BinaryTree<String> createExample() { BinaryTree<String> empty = BinaryTree.<String>_EmptyTree(); return _Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))); } }
GenericBinaryTreeUsage { public BinaryTree<String> createExample() { BinaryTree<String> empty = BinaryTree.<String>_EmptyTree(); return _Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))); }  }
GenericBinaryTreeUsage { public BinaryTree<String> createExample() { BinaryTree<String> empty = BinaryTree.<String>_EmptyTree(); return _Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))); }  BinaryTree<String> createExample(); String max(BinaryTree<String> tree); }
GenericBinaryTreeUsage { public BinaryTree<String> createExample() { BinaryTree<String> empty = BinaryTree.<String>_EmptyTree(); return _Node("hello", _Node("goodbye", empty, empty), _Node("whatever", empty, _Node("foo", empty, empty))); }  BinaryTree<String> createExample(); String max(BinaryTree<String> tree);  }