@Test public void testGetNotEqual() { BinaryTree instance = new BinaryTree(15); BinaryTree equal = new BinaryTree(15); BinaryTree notEqual = new BinaryTree(10); instance.setEqual(equal); instance.setNotEqual(notEqual); BinaryTree expResult = notEqual; BinaryTree result = instance.getNotEqual(); assertEquals(expResult, result); }
public synchronized BinaryTree getNotEqual() { return notEqual; }
BinaryTree { public synchronized BinaryTree getNotEqual() { return notEqual; } }
BinaryTree { public synchronized BinaryTree getNotEqual() { return notEqual; } BinaryTree(int value); }
BinaryTree { public synchronized BinaryTree getNotEqual() { return notEqual; } BinaryTree(int value); synchronized int getValue(); synchronized BinaryTree getEqual(); synchronized void setEqual(BinaryTree equal); synchronized BinaryTree getNotEqual(); synchronized void setNotEqual(BinaryTree notEqual); }
BinaryTree { public synchronized BinaryTree getNotEqual() { return notEqual; } BinaryTree(int value); synchronized int getValue(); synchronized BinaryTree getEqual(); synchronized void setEqual(BinaryTree equal); synchronized BinaryTree getNotEqual(); synchronized void setNotEqual(BinaryTree notEqual);  }