Skip to content

Commit 469495d

Browse files
BAEL-965 - removing deprecated methods
1 parent 03c7ee9 commit 469495d

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎libraries/src/test/java/com/baeldung/commons/collections/CollectionUtilsGuideTest.java‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ public void givenListOfCustomers_whenTransformed_thenListOfAddress() {
6060
assertTrue(addressList.get(0).getLocality().equals("locality1"));
6161
}
6262

63-
@Test
64-
public void givenCustomerList_whenCountMatches_thenCorrect() {
65-
int result = CollectionUtils.countMatches(list1, customer -> Arrays.asList("Daniel","Kyle").contains(customer.getName()));
66-
assertTrue(result == 2);
67-
}
68-
6963
@Test
7064
public void givenCustomerList_WhenFiltered_thenCorrectSize() {
7165

@@ -77,16 +71,6 @@ public void givenCustomerList_WhenFiltered_thenCorrectSize() {
7771
assertTrue(isModified && linkedList1.size() == 2);
7872
}
7973

80-
@Test
81-
public void givenCustomerList_whenForAllDoSetNameNull_thenNameNull() {
82-
CollectionUtils.forAllDo(list1, customer -> {
83-
customer.setName(null);
84-
});
85-
86-
// forAllButLast does the same except for the last element in the collection
87-
assertTrue(list1.get(0).getName() == null);
88-
}
89-
9074
@Test
9175
public void givenNonEmptyList_whenCheckedIsNotEmpty_thenTrue() {
9276
List<Customer> emptyList = new ArrayList<>();

0 commit comments

Comments
 (0)