File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import static java .nio .charset .StandardCharsets .UTF_8 ;
12
12
import static org .testng .Assert .assertEquals ;
13
+ import static org .testng .Assert .assertTrue ;
13
14
import static org .testng .Assert .assertNotNull ;
14
15
15
16
public class ServletUtilsTest {
@@ -25,7 +26,8 @@ public void convertWithRightOutputSize() throws Exception {
25
26
assertEquals (multivaluedMap .size (), 2 );
26
27
assertEquals (multivaluedMap .get ("key1" ).size (), 2 );
27
28
assertEquals (multivaluedMap .get ("key2" ).size (), 4 );
28
- assertEquals (multivaluedMap .keySet ().iterator ().next (), "key1" );
29
+ assertTrue (multivaluedMap .containsKey ("key1" ));
30
+ assertTrue (multivaluedMap .containsKey ("key2" ));
29
31
}
30
32
31
33
@ Test (description = "convert query parameters to multivaluedmap with decoded values" )
You can’t perform that action at this time.
0 commit comments