Skip to content
Snippets Groups Projects
Commit 5580a753 authored by alec.schmidt's avatar alec.schmidt
Browse files

test 3

parent 6d62495e
No related branches found
No related tags found
No related merge requests found
package ch.hepia; package ch.hepia;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -75,4 +77,12 @@ public class AppTest ...@@ -75,4 +77,12 @@ public class AppTest
/** /**
* Test 03 : * Test 03 :
*/ */
@Test
public void testSearch() {
ContactController found = controller.search("Testing");
ContactController notFound = controller.search("Phony");
assertEquals(found.getList().toString(), controller.getList().toString());
assertNotSame(notFound.getList().toString(), controller.getList().toString());
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment