3536373839404142434445
@Test public void Returns_Empty_Results_When_Given_Empty_List() { List<Thing> list = new ArrayList<Thing>(); Finder finder = new Finder(list); F result = finder.Find(FT.One); assertEquals(null, result.P1); assertEquals(null, result.P2); }
4849505152535455565758
List<Thing> list = new ArrayList<Thing>(); list.add(sue); Finder finder = new Finder(list); F result = finder.Find(FT.One); assertEquals(null, result.P1); assertEquals(null, result.P2); }
6162636465666768697071
List<Thing> list = new ArrayList<Thing>(); list.add(sue); list.add(greg); Finder finder = new Finder(list); F result = finder.Find(FT.One); assertEquals(sue, result.P1); assertEquals(greg, result.P2); }
7576777879808182838485
list.add(mike); list.add(greg); Finder finder = new Finder(list); F result = finder.Find(FT.Two); assertEquals(greg, result.P1); assertEquals(mike, result.P2); }
90919293949596979899100
list.add(sarah); list.add(mike); list.add(greg); Finder finder = new Finder(list); F result = finder.Find(FT.Two); assertEquals(sue, result.P1); assertEquals(sarah, result.P2); }
106107108109110111112113114115116
list.add(mike); list.add(greg); Finder finder = new Finder(list); F result = finder.Find(FT.One); assertEquals(sue, result.P1); assertEquals(greg, result.P2); }