Skip to content

Commit

Permalink
deps: bump Mockito from 4.5.1 to 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Sep 9, 2022
1 parent 403e42d commit c148274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion shared.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext {
version_bouncycastle = '1.70'
version_jackson = '2.10.1' // Matches transitive version for retrofit2:converter-jackson:2.8.1
version_junit = '5.9.0'
version_mockito = '4.5.1'
version_mockito = '4.8.0'
version_mustache = '1.15'
version_projectlombok = '1.18.24'
version_retrofit = '2.9.0'
Expand Down
9 changes: 5 additions & 4 deletions tests/src/test/java/com/marcnuri/yakc/PodIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void patchNamespacedPod() throws IOException {
.metadata(
ObjectMeta.builder()
.putInLabels("patched", "label")
.clearAnnotations()
.build()
).build()).get();
// Then
Expand Down Expand Up @@ -155,8 +156,8 @@ void execInNamespacedPodOnlyContainer() throws IOException {
// Then
assertThat(error.get()).as("Expected error to be null, but was: %s", error.get()).isNull();
assertThat(response.get())
.hasFieldOrPropertyWithValue("standardStream", StandardStream.STDOUT)
.hasFieldOrPropertyWithValue("message", "Hello World\n");
.returns(StandardStream.STDOUT, ExecMessage::getStandardStream)
.returns("Hello World\n", ExecMessage::getMessage);
}

@Test
Expand All @@ -173,8 +174,8 @@ void execInNamespacedPodValidContainer() throws IOException {
// Then
assertThat(error.get()).isNull();
assertThat(response.get())
.hasFieldOrPropertyWithValue("standardStream", StandardStream.STDOUT)
.hasFieldOrPropertyWithValue("message", "Hello World for yakc-pod-it\n");
.returns(StandardStream.STDOUT, ExecMessage::getStandardStream)
.returns("Hello World for yakc-pod-it\n", ExecMessage::getMessage);
}

@Test
Expand Down

0 comments on commit c148274

Please sign in to comment.