fixed Method getFilteredPlantListByString for case if SearchString is empty.
This commit is contained in:
@@ -170,6 +170,8 @@ class PlantListModelTest {
|
||||
assertEquals(examplePlantList.get(1), plantListResult.get(0));
|
||||
plantListResult = model.getFilteredPlantListByString(HardinessZone.ZONE_8A, "apple");
|
||||
assertEquals(0, plantListResult.size());
|
||||
plantListResult = model.getFilteredPlantListByString(HardinessZone.ZONE_8A, "");
|
||||
assertEquals(3, plantListResult.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user