File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
tests/src/test/java/com/marcnuri/yakc Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
version_bouncycastle = ' 1.70'
6
6
version_jackson = ' 2.10.1' // Matches transitive version for retrofit2:converter-jackson:2.8.1
7
7
version_junit = ' 5.9.0'
8
- version_mockito = ' 4.5.1 '
8
+ version_mockito = ' 4.8.0 '
9
9
version_mustache = ' 1.15'
10
10
version_projectlombok = ' 1.18.24'
11
11
version_retrofit = ' 2.9.0'
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ void patchNamespacedPod() throws IOException {
128
128
.metadata (
129
129
ObjectMeta .builder ()
130
130
.putInLabels ("patched" , "label" )
131
+ .clearAnnotations ()
131
132
.build ()
132
133
).build ()).get ();
133
134
// Then
@@ -155,8 +156,8 @@ void execInNamespacedPodOnlyContainer() throws IOException {
155
156
// Then
156
157
assertThat (error .get ()).as ("Expected error to be null, but was: %s" , error .get ()).isNull ();
157
158
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 );
160
161
}
161
162
162
163
@ Test
@@ -173,8 +174,8 @@ void execInNamespacedPodValidContainer() throws IOException {
173
174
// Then
174
175
assertThat (error .get ()).isNull ();
175
176
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 );
178
179
}
179
180
180
181
@ Test
You can’t perform that action at this time.
0 commit comments