File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
server/src/test/java/broker/api Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -173,18 +173,21 @@ private Institution findInstitutionBySchacHome(String schacHome) {
173
173
174
174
@ Test
175
175
public void playground () {
176
+ CookieFilter cookieFilter = new CookieFilter ();
177
+ formSubmitByCatalog (cookieFilter , "utrecht.nl" );
176
178
Map <String , Object > body = new HashMap <>();
177
179
body .put ("code" , 400 );
178
180
body .put ("message" , "Something bad happened" );
179
181
Map <String , Object > result = given ()
182
+ .filter (cookieFilter )
180
183
.accept (ContentType .JSON )
181
184
.contentType (ContentType .JSON )
182
185
.body (body )
183
186
.when ()
184
187
.post ("/api/start" )
185
- .as (new TypeRef <Map < String , Object > >() {
188
+ .as (new TypeRef <>() {
186
189
});
187
- assertEquals (result .keySet (), body .keySet ());
190
+ assertTrue (result .keySet (). containsAll ( body .keySet () ));
188
191
}
189
192
190
193
@ Test
You can’t perform that action at this time.
0 commit comments