BAEL-7177
review comments implemented.
This commit is contained in:
parent
aa27014425
commit
fb2f90d88f
@ -95,15 +95,6 @@ public class ModifyStreamUnitTest {
|
|||||||
assertEquals(3, newPersonList.size());
|
assertEquals(3, newPersonList.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void givenPersonList_whenRemovePersonWithRemoveIf_thenPersonRemoved() {
|
|
||||||
assertEquals(4, personList.size());
|
|
||||||
|
|
||||||
personList.removeIf(e -> e.getName().equals("John"));
|
|
||||||
|
|
||||||
assertEquals(3, personList.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenPersonList_whenUpdatePersonEmailByInterferingWithForEach_thenPersonEmailUpdated() {
|
void givenPersonList_whenUpdatePersonEmailByInterferingWithForEach_thenPersonEmailUpdated() {
|
||||||
personList.stream().forEach(e -> e.setEmail(e.getEmail().toUpperCase()));
|
personList.stream().forEach(e -> e.setEmail(e.getEmail().toUpperCase()));
|
||||||
@ -128,6 +119,7 @@ public class ModifyStreamUnitTest {
|
|||||||
|
|
||||||
newImmutablePersonList.forEach(e -> assertEquals(e.getEmail(), e.getEmail().toUpperCase()));
|
newImmutablePersonList.forEach(e -> assertEquals(e.getEmail(), e.getEmail().toUpperCase()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenPersonList_whenUpdatePersonEmailByInterferingWithPeek_thenPersonEmailUpdated() {
|
void givenPersonList_whenUpdatePersonEmailByInterferingWithPeek_thenPersonEmailUpdated() {
|
||||||
personList.stream()
|
personList.stream()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user