File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/test/java/com/marcnuri/demo/kubernetesclient Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3636 <scope >test</scope >
3737 </dependency >
3838 <dependency >
39- <groupId >org.hamcrest </groupId >
40- <artifactId >java-hamcrest </artifactId >
39+ <groupId >org.assertj </groupId >
40+ <artifactId >assertj-core </artifactId >
4141 <scope >test</scope >
4242 </dependency >
4343 </dependencies >
Original file line number Diff line number Diff line change 1414import java .util .concurrent .CountDownLatch ;
1515import java .util .concurrent .TimeUnit ;
1616
17- import static org .hamcrest .MatcherAssert .assertThat ;
18- import static org .hamcrest .core .Is .is ;
17+ import static org .assertj .core .api .Assertions .assertThat ;
1918
2019class ExecITCase {
2120
@@ -80,7 +79,7 @@ public void onClose(int code, String reason) {
8079 .exec ("sh" , "-c" , "sleep 8 && echo hello" );
8180 cdl .await (10 , TimeUnit .SECONDS );
8281 // Then
83- assertThat (result .toString (StandardCharsets .UTF_8 ), is ("hello\n " ) );
82+ assertThat (result .toString (StandardCharsets .UTF_8 )). isEqualTo ("hello\n " );
8483 }
8584 }
8685}
You can’t perform that action at this time.
0 commit comments