Skip to content

Commit 543c6ee

Browse files
slavisa-baeldungslavisa-baeldung
authored andcommitted
BAEL-581 - reformatting
1 parent a7c1fb3 commit 543c6ee

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎core-java/src/test/java/com/baeldung/java/conversion/IterableStreamConversionTest.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ public class IterableStreamConversionTest {
1818

1919
@Test
2020
public void givenIterable_whenConvertedToStream_thenNotNull() {
21-
String[] names = { "Testing", "Iterable", "conversion", "to", "Stream" };
21+
String[] names = {"Testing", "Iterable", "conversion", "to", "Stream"};
2222
StreamIterable<String> iterable = new StreamIterable<>(names);
2323
Assert.assertNotNull(StreamSupport.stream(iterable.spliterator(), false));
2424
}
2525

26-
@Test
27-
public void whenConvertedToList_thenCorrect() {
28-
String[] names = { "Testing", "Iterable", "conversion", "to", "Stream" };
29-
StreamIterable<String> iterable = new StreamIterable<>(names);
30-
Stream<String> convertedStream = StreamSupport.stream(iterable.spliterator(), false);
31-
List<String> collected = convertedStream.map(String::toUpperCase).collect(Collectors.toList());
32-
assertThat(collected, contains("TESTING", "ITERABLE", "CONVERSION", "TO", "STREAM"));
33-
}
26+
@Test
27+
public void whenConvertedToList_thenCorrect() {
28+
String[] names = {"Testing", "Iterable", "conversion", "to", "Stream"};
29+
StreamIterable<String> iterable = new StreamIterable<>(names);
30+
Stream<String> convertedStream = StreamSupport.stream(iterable.spliterator(), false);
31+
List<String> collected = convertedStream.map(String::toUpperCase).collect(Collectors.toList());
32+
assertThat(collected, contains("TESTING", "ITERABLE", "CONVERSION", "TO", "STREAM"));
33+
}
3434
}
3535

3636
class StreamIterable<T> implements Iterable<T> {

0 commit comments

Comments
 (0)