BAEL-7: Fix formatting (#874)

This commit is contained in:
Hector Romero 2016-12-03 10:06:01 -06:00 committed by Grzegorz Piwowarek
parent 20acf42fca
commit 34e5a6475f

View File

@ -74,7 +74,8 @@ public class JoinSplitCollectionsUnitTest {
users.put(2, "Paul Smith");
users.put(3, "Susan Anderson");
String result = users.entrySet().stream().map(entry -> entry.getKey() + " = " + entry.getValue())
String result = users.entrySet().stream()
.map(entry -> entry.getKey() + " = " + entry.getValue())
.collect(Collectors.joining(", "));
assertEquals(result, "1 = John Doe, 2 = Paul Smith, 3 = Susan Anderson");
@ -114,9 +115,9 @@ public class JoinSplitCollectionsUnitTest {
numbers.forEach(next -> {
int index = count.getAndIncrement();
if(index < midpoint){
if (index < midpoint) {
result1.add(next);
}else{
} else {
result2.add(next);
}
});
@ -127,7 +128,7 @@ public class JoinSplitCollectionsUnitTest {
@Test
public void whenSplitArrayByWordLength_thenConverted() {
String[] words = new String[]{"bye", "cold", "it", "and", "my", "word"};
String[] words = new String[] { "bye", "cold", "it", "and", "my", "word" };
Map<Integer, List<String>> result = Arrays.stream(words)
.collect(Collectors.groupingBy(word -> word.length()));