File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/java/de/doubleslash/keeptime/view Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11package de .doubleslash .keeptime .view ;
22
3+ import static org .junit .Assert .assertFalse ;
34import static org .junit .Assert .assertTrue ;
45
56import 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}
You can’t perform that action at this time.
0 commit comments