File tree Expand file tree Collapse file tree
core-java-modules/core-java-12/src/test/java/com/baeldung/string Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public void whenPositiveArgument_thenReturnIndentedString() {
1414
1515 String postIndent = multilineStr .indent (3 );
1616
17- assertThat (outputStr , equalTo (postIndent ));
17+ assertThat (postIndent , equalTo (outputStr ));
1818 }
1919
2020 @ Test
@@ -24,20 +24,20 @@ public void whenNegativeArgument_thenReturnReducedIndentedString() {
2424
2525 String postIndent = multilineStr .indent (-2 );
2626
27- assertThat (outputStr , equalTo (postIndent ));
27+ assertThat (postIndent , equalTo (outputStr ));
2828 }
2929
3030 @ Test
3131 public void whenTransformUsingLamda_thenReturnTransformedString () {
3232 String result = "hello" .transform (input -> input + " world!" );
3333
34- assertThat ("hello world!" , equalTo ( result ));
34+ assertThat (result , equalTo ( "hello world!" ));
3535 }
3636
3737 @ Test
3838 public void whenTransformUsingParseInt_thenReturnInt () {
3939 int result = "42" .transform (Integer ::parseInt );
4040
41- assertThat (42 , equalTo (result ));
41+ assertThat (result , equalTo (42 ));
4242 }
4343}
You can’t perform that action at this time.
0 commit comments