Skip to content

Commit 7f3870a

Browse files
authored
Update test case
1 parent 0aec93c commit 7f3870a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-parser-v2-converter/src/test/java/io/swagger/parser/test/V2ConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)