Skip to content

Commit a3ab4ac

Browse files
committed
test: exec uses assertj instead of hamcrest
Signed-off-by: Marc Nuri <[email protected]>
1 parent 440090f commit a3ab4ac

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

exec/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
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>

exec/src/test/java/com/marcnuri/demo/kubernetesclient/ExecITCase.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
import java.util.concurrent.CountDownLatch;
1515
import 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

2019
class 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
}

0 commit comments

Comments
 (0)