fix test arg order
This commit is contained in:
parent
ef4fe8c870
commit
cc4a2639d9
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue