Idiomatic refactor (#2063)

* StringToCharStream

* Spring integration tests

* Spring integration tests
This commit is contained in:
Grzegorz Piwowarek
2017-06-13 16:54:45 +02:00
committed by GitHub
parent 53f4ec5f87
commit fe11e8f7d4
4 changed files with 29 additions and 42 deletions

View File

@@ -10,12 +10,9 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
/**
* Created by smatt on 09/06/2017.
*/
public class StringToCharStreamUnitTest {
String testString = "Tests";
private String testString = "Tests";
@Test
public void givenTestString_whenChars_thenReturnIntStream() {
@@ -37,9 +34,9 @@ public class StringToCharStreamUnitTest {
}
@Test
public void givenIntStream_whenMapToObj_thenReturnStringStream(){
public void givenIntStream_whenMapToObj_thenReturnStringStream() {
Stream<String> stringStream
= testString.codePoints().mapToObj(c -> String.valueOf((char) c));
= testString.codePoints().mapToObj(c -> String.valueOf((char) c));
assertNotNull(stringStream);
}