X Tutup
Skip to content

Commit 019770c

Browse files
committed
Fix tests
1 parent efb4245 commit 019770c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/github/dockerjava/core/DefaultDockerClientConfigTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,25 +180,25 @@ public void withDockerTlsVerify() throws Exception {
180180
field.setAccessible(true);
181181

182182
builder.withDockerTlsVerify("");
183-
assertThat(field.getBoolean(builder), is(false));
183+
assertThat((Boolean) field.get(builder), is(false));
184184

185185
builder.withDockerTlsVerify("false");
186-
assertThat(field.getBoolean(builder), is(false));
186+
assertThat((Boolean) field.get(builder), is(false));
187187

188188
builder.withDockerTlsVerify("FALSE");
189-
assertThat(field.getBoolean(builder), is(false));
189+
assertThat((Boolean) field.get(builder), is(false));
190190

191191
builder.withDockerTlsVerify("true");
192-
assertThat(field.getBoolean(builder), is(true));
192+
assertThat((Boolean) field.get(builder), is(true));
193193

194194
builder.withDockerTlsVerify("TRUE");
195-
assertThat(field.getBoolean(builder), is(true));
195+
assertThat((Boolean) field.get(builder), is(true));
196196

197197
builder.withDockerTlsVerify("0");
198-
assertThat(field.getBoolean(builder), is(false));
198+
assertThat((Boolean) field.get(builder), is(false));
199199

200200
builder.withDockerTlsVerify("1");
201-
assertThat(field.getBoolean(builder), is(true));
201+
assertThat((Boolean) field.get(builder), is(true));
202202
}
203203

204204
}

0 commit comments

Comments
 (0)
X Tutup