@@ -0,0 +1,689 @@
+package com.jeffreydiaz.test.search;%0A%0Aimport com.jeffreydiaz.search.BinarySearch;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Test class for BinarySearch%0A * @author Jeffrey Diaz%0A */%0Apublic class BinarySearchTest %7B%0A%0A%09@Test%0A%09public void TestBinarySearchWithFoundItem()%0A%09%7B%0A%09%09Integer%5B%5D items = getIntegerArray();%0A%09%09boolean found = BinarySearch.search(items, 40);%0A%0A%09%09assertTrue(found);%0A%09%7D%0A%0A%09@Test%0A%09public void TestBinarySearchWithItemNotFound()%0A%09%7B%0A%09%09Integer%5B%5D items = getIntegerArray();%0A%09%09boolean found = BinarySearch.search(items, 0);%0A%0A%09%09assertFalse(found);%0A%09%7D%0A%0A%09private Integer%5B%5D getIntegerArray()%0A%09%7B%0A%09%09return new Integer%5B%5D %7B12, 15, 20, 40, 50, 100, 400, 405, 500%7D;%0A%09%7D%0A%7D

Test class for BinarySearch.