@Test(expected = IllegalArgumentException.class) public void shouldNotAcceptNullBinaryTreesToSerialize() { binaryTreeSerialization.serialize(null); }
public String serialize(BinaryNode root) { validateInputTree(root); return serializeInner(root); }
BinaryTreeSerialization { public String serialize(BinaryNode root) { validateInputTree(root); return serializeInner(root); } }
BinaryTreeSerialization { public String serialize(BinaryNode root) { validateInputTree(root); return serializeInner(root); } BinaryTreeSerialization(); }
BinaryTreeSerialization { public String serialize(BinaryNode root) { validateInputTree(root); return serializeInner(root); } BinaryTreeSerialization(); String serialize(BinaryNode root); BinaryNode<Integer> deserialize(String tree); }
BinaryTreeSerialization { public String serialize(BinaryNode root) { validateInputTree(root); return serializeInner(root); } BinaryTreeSerialization(); String serialize(BinaryNode root); BinaryNode<Integer> deserialize(String tree);  }