Skip to content

Commit c148274

Browse files
committed
deps: bump Mockito from 4.5.1 to 4.8.0
1 parent 403e42d commit c148274

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

shared.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ext {
55
version_bouncycastle = '1.70'
66
version_jackson = '2.10.1' // Matches transitive version for retrofit2:converter-jackson:2.8.1
77
version_junit = '5.9.0'
8-
version_mockito = '4.5.1'
8+
version_mockito = '4.8.0'
99
version_mustache = '1.15'
1010
version_projectlombok = '1.18.24'
1111
version_retrofit = '2.9.0'

tests/src/test/java/com/marcnuri/yakc/PodIT.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ void patchNamespacedPod() throws IOException {
128128
.metadata(
129129
ObjectMeta.builder()
130130
.putInLabels("patched", "label")
131+
.clearAnnotations()
131132
.build()
132133
).build()).get();
133134
// Then
@@ -155,8 +156,8 @@ void execInNamespacedPodOnlyContainer() throws IOException {
155156
// Then
156157
assertThat(error.get()).as("Expected error to be null, but was: %s", error.get()).isNull();
157158
assertThat(response.get())
158-
.hasFieldOrPropertyWithValue("standardStream", StandardStream.STDOUT)
159-
.hasFieldOrPropertyWithValue("message", "Hello World\n");
159+
.returns(StandardStream.STDOUT, ExecMessage::getStandardStream)
160+
.returns("Hello World\n", ExecMessage::getMessage);
160161
}
161162

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

180181
@Test

0 commit comments

Comments
 (0)