Skip to content

Commit 4e14e1f

Browse files
committed
Fixed tests
1 parent f8d98dd commit 4e14e1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/src/test/java/broker/api/BrokerControllerTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,21 @@ private Institution findInstitutionBySchacHome(String schacHome) {
173173

174174
@Test
175175
public void playground() {
176+
CookieFilter cookieFilter = new CookieFilter();
177+
formSubmitByCatalog(cookieFilter, "utrecht.nl");
176178
Map<String, Object> body = new HashMap<>();
177179
body.put("code", 400);
178180
body.put("message", "Something bad happened");
179181
Map<String, Object> result = given()
182+
.filter(cookieFilter)
180183
.accept(ContentType.JSON)
181184
.contentType(ContentType.JSON)
182185
.body(body)
183186
.when()
184187
.post("/api/start")
185-
.as(new TypeRef<Map<String, Object>>() {
188+
.as(new TypeRef<>() {
186189
});
187-
assertEquals(result.keySet(), body.keySet());
190+
assertTrue(result.keySet().containsAll(body.keySet()));
188191
}
189192

190193
@Test

0 commit comments

Comments
 (0)