BAEL-965 - removing deprecated methods
This commit is contained in:
parent
03c7ee9b2a
commit
469495d2ef
@ -60,12 +60,6 @@ public class CollectionUtilsGuideTest {
|
|||||||
assertTrue(addressList.get(0).getLocality().equals("locality1"));
|
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
|
@Test
|
||||||
public void givenCustomerList_WhenFiltered_thenCorrectSize() {
|
public void givenCustomerList_WhenFiltered_thenCorrectSize() {
|
||||||
|
|
||||||
@ -77,16 +71,6 @@ public class CollectionUtilsGuideTest {
|
|||||||
assertTrue(isModified && linkedList1.size() == 2);
|
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
|
@Test
|
||||||
public void givenNonEmptyList_whenCheckedIsNotEmpty_thenTrue() {
|
public void givenNonEmptyList_whenCheckedIsNotEmpty_thenTrue() {
|
||||||
List<Customer> emptyList = new ArrayList<>();
|
List<Customer> emptyList = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user