Is Empty
by Isai Damier

/****************************************************************
 * Author: Isai Damier
 * Title: Is Empty
 * Project: geekviewpoint
 * Package: algorithms
 *
 * Time Complexity of Solution:
 *   Best = Average = Worst = const.
 *
 ***************************************************************/ 
 public boolean isEmpty() {
  return null == root;
}
import org.junit.Test;
import static org.junit.Assert.*;

public class BSTTest {

/**
   * Test of isEmpty method, of class BST.
   */
  @Test
  public void testIsEmpty() {
    System.out.println(""isEmpty"");
    BST bst = new BST();
    boolean expResult = true;
    boolean result = bst.isEmpty();
    assertEquals(expResult, result);
  }
}