Skip to content

Commit f06af04

Browse files
author
Martin Plieske
committed
added test which should be false
1 parent 373c3ce commit f06af04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/java/de/doubleslash/keeptime/view/ProjectsListViewControllerTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package de.doubleslash.keeptime.view;
22

3+
import static org.junit.Assert.assertFalse;
34
import static org.junit.Assert.assertTrue;
45

56
import org.junit.Test;
@@ -58,4 +59,14 @@ public void shouldMatchWhenCaseDiffersInDescriptionAsSearchTerm() {
5859
assertTrue(ProjectsListViewController.doesProjectMatchSearchFilter("mYliTTlEAnT", project));
5960
}
6061

62+
@Test
63+
public void shouldNotMatchWhenDescriptionAndNameAreNotMatching() {
64+
final Project project = new Project();
65+
66+
project.setName("MyNameIsJohn");
67+
project.setDescription("I am a project.");
68+
69+
assertFalse(ProjectsListViewController.doesProjectMatchSearchFilter("Hellow world", project));
70+
}
71+
6172
}

0 commit comments

Comments
 (0)