BAEL-965 - removing deprecated methods

This commit is contained in:
slavisa-baeldung 2017-07-03 09:06:48 +01:00
parent 03c7ee9b2a
commit 469495d2ef
1 changed files with 0 additions and 16 deletions

View File

@ -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<>();