fix test arg order

This commit is contained in:
Ganesh Pagade 2019-05-12 11:10:07 +05:30
parent ef4fe8c870
commit cc4a2639d9
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ public class StringAPITest {
String postIndent = multilineStr.indent(3);
assertThat(outputStr, equalTo(postIndent));
assertThat(postIndent, equalTo(outputStr));
}
@Test
@ -24,20 +24,20 @@ public class StringAPITest {
String postIndent = multilineStr.indent(-2);
assertThat(outputStr, equalTo(postIndent));
assertThat(postIndent, equalTo(outputStr));
}
@Test
public void whenTransformUsingLamda_thenReturnTransformedString() {
String result = "hello".transform(input -> input + " world!");
assertThat("hello world!", equalTo(result));
assertThat(result, equalTo("hello world!"));
}
@Test
public void whenTransformUsingParseInt_thenReturnInt() {
int result = "42".transform(Integer::parseInt);
assertThat(42, equalTo(result));
assertThat(result, equalTo(42));
}
}