File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/swagger-parser-v2-converter/src/test/java/io/swagger/parser/test Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -773,8 +773,9 @@ public void testIssue1032() throws Exception {
773
773
assertNotNull (oas );
774
774
Parameter unixTimestampQueryParameter = oas .getPaths ().get (DATA_PATH ).getGet ().getParameters ().get (0 );
775
775
assertNotNull (unixTimestampQueryParameter );
776
- assertTrue (unixTimestampQueryParameter .getSchema () instanceof IntegerSchema );
777
- IntegerSchema integerSchema = (IntegerSchema ) unixTimestampQueryParameter .getSchema ();
776
+ Schema s = unixTimestampQueryParameter .getSchema ();
777
+ assertTrue ("actual type: " + s , (s instanceof IntegerSchema ));
778
+ IntegerSchema integerSchema = (IntegerSchema ) x ;
778
779
assertEquals (INTEGER_TYPE , integerSchema .getType ());
779
780
assertEquals (INT64_FORMAT , integerSchema .getFormat ());
780
781
}
You can’t perform that action at this time.
0 commit comments