Skip to content

Commit cc7d5ba

Browse files
NitishBangeramaibin
authored andcommitted
Final Review changes. (eugenp#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.
1 parent 09fc6d9 commit cc7d5ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎core-java-9/src/test/java/com/baeldung/java9/language/stream/CollectorImprovementTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public void addComment(String comment) {
3131
}
3232
}
3333

34-
@Test
35-
public void testFiltering() {
34+
@Test
35+
public void givenList_whenSatifyPredicate_thenMapValueWithOccurences() {
3636
List<Integer> numbers = List.of(1, 2, 3, 5, 5);
3737

3838
Map<Integer, Long> result = numbers.stream()
@@ -49,7 +49,7 @@ public void testFiltering() {
4949
}
5050

5151
@Test
52-
public void testFlatMapping() {
52+
public void givenListOfBlogs_whenAuthorName_thenMapAuthorWithComments() {
5353
Blog blog1 = new CollectorImprovementTest.Blog("1");
5454
blog1.addComment("Nice");
5555
blog1.addComment("Very Nice");

0 commit comments

Comments
 (0)