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:
Nitish Bangera 2017-01-26 23:20:41 +05:30 committed by maibin
parent 09fc6d9ee4
commit cc7d5ba3fc
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public class CollectorImprovementTest {
}
@Test
public void testFiltering() {
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");