Skip to content

Commit d02f219

Browse files
committed
updated spring mvn async sample.
1 parent e5812b7 commit d02f219

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+188
-4003
lines changed

bin/spring-mvc-petstore-j8-async-server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626

2727
# if you've executed sbt assembly previously it will use that instead.
2828
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
29-
ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaSpring -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l spring -o samples/server/petstore/spring-mvc-j8-async -c bin/spring-mvc-petstore-j8-async.json -DhideGenerationTimestamp=true,java8=true,async=true"
29+
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l spring -o samples/server/petstore/spring-mvc-j8-async -c bin/spring-mvc-petstore-j8-async.json -DhideGenerationTimestamp=true,java8=true,async=true"
3030

31-
# java $JAVA_OPTS -jar $executable $ags
31+
java $JAVA_OPTS -jar $executable $ags
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.1-SNAPSHOT
1+
3.0.1-SNAPSHOT

samples/server/petstore/spring-mvc-j8-async/pom.xml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</plugin>
1616
<plugin>
1717
<artifactId>maven-failsafe-plugin</artifactId>
18-
<version>2.6</version>
18+
<version>2.18.1</version>
1919
<executions>
2020
<execution>
2121
<goals>
@@ -36,6 +36,7 @@
3636
<webAppSourceDirectory>target/${project.artifactId}-${project.version}</webAppSourceDirectory>
3737
<stopPort>8079</stopPort>
3838
<stopKey>stopit</stopKey>
39+
<stopWait>10</stopWait>
3940
<httpConnector>
4041
<port>8002</port>
4142
<idleTimeout>60000</idleTimeout>
@@ -130,6 +131,33 @@
130131
<version>1.1.0.Final</version>
131132
<scope>provided</scope>
132133
</dependency>
134+
<dependency>
135+
<groupId>org.testng</groupId>
136+
<artifactId>testng</artifactId>
137+
<version>6.8.8</version>
138+
<scope>test</scope>
139+
<exclusions>
140+
<exclusion>
141+
<artifactId>junit</artifactId>
142+
<groupId>junit</groupId>
143+
</exclusion>
144+
<exclusion>
145+
<artifactId>snakeyaml</artifactId>
146+
<groupId>org.yaml</groupId>
147+
</exclusion>
148+
<exclusion>
149+
<artifactId>bsh</artifactId>
150+
<groupId>org.beanshell</groupId>
151+
</exclusion>
152+
</exclusions>
153+
</dependency>
154+
155+
<dependency>
156+
<groupId>org.apache.httpcomponents</groupId>
157+
<artifactId>httpclient</artifactId>
158+
<version>4.5.2</version>
159+
<scope>test</scope>
160+
</dependency>
133161
</dependencies>
134162
<properties>
135163
<java.version>1.8</java.version>

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/AnotherFakeApi.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/AnotherFakeApiController.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)