File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/swagger-parser-v2-converter/src/test/java/io/swagger/parser/test Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public class V2ConverterTest {
155
155
private static final String ARRAY_VALUES = "[{\" id\" :-1,\" name\" :\" Marvin the Paranoid Android\" }," +
156
156
"{\" id\" :1000000,\" name\" :\" Zaphod Beeblebrox\" ,\" friends\" :[15]}]" ;
157
157
private static final String SCHEMAS_A_REF = "#/components/schemas/A" ;
158
- private static final String DATA_PATH = "/data " ;
158
+ private static final String UNIX_TIMESTAMP_QUERY_PARAM = "unixTimestampQuery " ;
159
159
private static final String INTEGER_TYPE = "integer" ;
160
160
private static final String INT64_FORMAT = "int64" ;
161
161
@@ -771,7 +771,7 @@ public void testIssue820() throws Exception {
771
771
public void testIssue1032 () throws Exception {
772
772
final OpenAPI oas = getConvertedOpenAPIFromJsonFile (ISSUE_1032_YAML );
773
773
assertNotNull (oas );
774
- Parameter unixTimestampQueryParameter = oas .getPaths ().get ( DATA_PATH ). getGet (). getParameters ().get (0 );
774
+ Parameter unixTimestampQueryParameter = oas .getComponents ().getParameters ().get (UNIX_TIMESTAMP_QUERY_PARAM );
775
775
assertNotNull (unixTimestampQueryParameter );
776
776
Schema s = unixTimestampQueryParameter .getSchema ();
777
777
assertTrue ((s instanceof IntegerSchema ), "actual type: " + s );
You can’t perform that action at this time.
0 commit comments