removing deprecated methods
@@ -60,12 +60,6 @@ public class CollectionUtilsGuideTest {
assertTrue(addressList.get(0).getLocality().equals("locality1"));
}
- @Test
- public void givenCustomerList_whenCountMatches_thenCorrect() {
- int result = CollectionUtils.countMatches(list1, customer -> Arrays.asList("Daniel","Kyle").contains(customer.getName()));
- assertTrue(result == 2);
- }
-
@Test
public void givenCustomerList_WhenFiltered_thenCorrectSize() {
@@ -77,16 +71,6 @@ public class CollectionUtilsGuideTest {
assertTrue(isModified && linkedList1.size() == 2);
}
- @Test
- public void givenCustomerList_whenForAllDoSetNameNull_thenNameNull() {
- CollectionUtils.forAllDo(list1, customer -> {
- customer.setName(null);
- });
-
- // forAllButLast does the same except for the last element in the collection
- assertTrue(list1.get(0).getName() == null);
- }
-
@Test
public void givenNonEmptyList_whenCheckedIsNotEmpty_thenTrue() {
List<Customer> emptyList = new ArrayList<>();
