Skip to content

Commit 5def896

Browse files
committed
Format OpenAPIV3ParserTest
1 parent de4dbcf commit 5def896

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV3ParserTest.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ public void testIssue1169() {
180180
assertNotNull(apispec);
181181
}
182182

183-
184183
@Test
185184
public void testIssue339() throws Exception {
186185
OpenAPIV3Parser openAPIV3Parser = new OpenAPIV3Parser();
@@ -522,7 +521,6 @@ public void testPattern() {
522521
Assert.assertEquals(s.getPattern(),"^[A-Z]+$"); //ERROR: got null
523522
}
524523

525-
526524
@BeforeClass
527525
private void setUpWireMockServer() throws IOException {
528526
this.wireMockServer = new WireMockServer(WireMockConfiguration.wireMockConfig().dynamicPort());
@@ -867,7 +865,6 @@ public void int64ExampleWithoutOverflow() throws Exception {
867865
Assert.assertEquals("1516042231144", date.getExample().toString());
868866
}
869867

870-
871868
@Test
872869
public void testRefPaths() throws Exception {
873870
String yaml = "openapi: '3.0.0'\n" +
@@ -1234,10 +1231,8 @@ public void testIssue() {
12341231

12351232
assertEquals(((Map) openAPI.getExtensions().get("x-some-vendor")).get("sometesting"), "bye!");
12361233
assertEquals(openAPI.getPaths().get("/foo").getExtensions().get("x-something"), "yes, it is supported");
1237-
12381234
}
12391235

1240-
12411236
@Test
12421237
public void testIssue292WithCSVCollectionFormat() {
12431238
String yaml =
@@ -1898,7 +1893,7 @@ public void shouldParseParameters() {
18981893
assertEquals(parameter.getIn(), "path");
18991894
assertEquals(parameter.getName(), "playerId");
19001895
}
1901-
1896+
19021897
@Test
19031898
public void testIssue884() {
19041899
ParseOptions parseOptions = new ParseOptions();
@@ -1910,7 +1905,7 @@ public void testIssue884() {
19101905
assertEquals(operationId, "getRepository");
19111906
assertNotNull(userRepository.getHeaders());
19121907
}
1913-
1908+
19141909
@Test
19151910
public void testLinkIssue() {
19161911
ParseOptions parseOptions = new ParseOptions();
@@ -2067,10 +2062,10 @@ public void shouldParseApiWithMultipleParameterReferences() {
20672062

20682063
@Test
20692064
public void shouldParseApiWithParametersUsingContentvsSchema() {
2070-
// Tests that the content method of specifying the format of a parameter
2071-
// gets resolved.
2072-
// Test checks if an API's single parameter of array type gets fully resolved to
2073-
// referenced definitions.
2065+
// Tests that the content method of specifying the format of a parameter
2066+
// gets resolved.
2067+
// Test checks if an API's single parameter of array type gets fully resolved to
2068+
// referenced definitions.
20742069
String location = "src/test/resources/issue-1078/api.yaml";
20752070
ParseOptions options = new ParseOptions();
20762071
options.setResolve(true);

0 commit comments

Comments
 (0)