Final Review changes. (#1055)
* String to char and vice versa initial article code * Junit test case for String Conversion. Deleting normal class. * Changes based on review. * BAEL-591 : New Java9 Collectors code snippet * Deleting String conversion test * BAEL-591 : Changing to BDD style testcase names.
This commit is contained in:
parent
09fc6d9ee4
commit
cc7d5ba3fc
|
@ -31,8 +31,8 @@ public class CollectorImprovementTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFiltering() {
|
||||
@Test
|
||||
public void givenList_whenSatifyPredicate_thenMapValueWithOccurences() {
|
||||
List<Integer> numbers = List.of(1, 2, 3, 5, 5);
|
||||
|
||||
Map<Integer, Long> result = numbers.stream()
|
||||
|
@ -49,7 +49,7 @@ public class CollectorImprovementTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFlatMapping() {
|
||||
public void givenListOfBlogs_whenAuthorName_thenMapAuthorWithComments() {
|
||||
Blog blog1 = new CollectorImprovementTest.Blog("1");
|
||||
blog1.addComment("Nice");
|
||||
blog1.addComment("Very Nice");
|
||||
|
|
Loading…
Reference in New Issue