Skip to content

Commit 62c59c8

Browse files
BAEL-583 - minor changes
1 parent 444c475 commit 62c59c8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎core-java/src/test/java/com/baeldung/java8/Java8FindAnyFindFirstTest.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Java8FindAnyFindFirstTest {
1717
@Test
1818
public void createStream_whenFindAnyResultIsPresent_thenCorrect() {
1919

20-
List<String> list = Arrays.asList("A","B","C","D");
20+
List<String> list = Arrays.asList("A", "B", "C", "D");
2121

2222
Optional<String> result = list.stream().findAny();
2323

@@ -26,26 +26,26 @@ public void createStream_whenFindAnyResultIsPresent_thenCorrect() {
2626
}
2727

2828
@Test
29-
public void createParallelStream_whenFindAnyResultIsPresent_ThenCorrect() throws Exception {
30-
List<Integer> list = Arrays.asList(1,2,3,4,5);
29+
public void createParallelStream_whenFindAnyResultIsPresent_thenCorrect() throws Exception {
30+
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
3131
Optional<Integer> result = list
3232
.stream()
3333
.parallel()
34-
.filter(num -> num<4)
34+
.filter(num -> num < 4)
3535
.findAny();
3636

3737
assertTrue(result.isPresent());
38-
assertThat(result.get(),anyOf(is(1), is(2), is(3)));
38+
assertThat(result.get(), anyOf(is(1), is(2), is(3)));
3939
}
4040

4141
@Test
4242
public void createStream_whenFindFirstResultIsPresent_thenCorrect() {
4343

44-
List<String> list = Arrays.asList("A","B","C","D");
44+
List<String> list = Arrays.asList("A", "B", "C", "D");
4545

4646
Optional<String> result = list.stream().findFirst();
4747

4848
assertTrue(result.isPresent());
49-
assertThat(result.get(),is("A"));
49+
assertThat(result.get(), is("A"));
5050
}
5151
}

0 commit comments

Comments
 (0)