This repository was archived by the owner on Nov 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
modules/swagger-parser-v2-converter/src/test/java/io/swagger/parser/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public class V2ConverterTest {
155155 private static final String ARRAY_VALUES = "[{\" id\" :-1,\" name\" :\" Marvin the Paranoid Android\" }," +
156156 "{\" id\" :1000000,\" name\" :\" Zaphod Beeblebrox\" ,\" friends\" :[15]}]" ;
157157 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 " ;
159159 private static final String INTEGER_TYPE = "integer" ;
160160 private static final String INT64_FORMAT = "int64" ;
161161
@@ -771,7 +771,7 @@ public void testIssue820() throws Exception {
771771 public void testIssue1032 () throws Exception {
772772 final OpenAPI oas = getConvertedOpenAPIFromJsonFile (ISSUE_1032_YAML );
773773 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 );
775775 assertNotNull (unixTimestampQueryParameter );
776776 Schema s = unixTimestampQueryParameter .getSchema ();
777777 assertTrue ((s instanceof IntegerSchema ), "actual type: " + s );
You can’t perform that action at this time.
0 commit comments