Skip to content

Commit 302d028

Browse files
wing328michaelpro1
authored andcommitted
Test scala akka petstore client in CI (OpenAPITools#6118)
* test scala akka in ci * fix compilation error * fix scala akka test * add tests
1 parent 7b5cc92 commit 302d028

File tree

9 files changed

+879
-10
lines changed

9 files changed

+879
-10
lines changed

bin/openapi3/scala-akka-petstore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ fi
2727

2828
# if you've executed sbt assembly previously it will use that instead.
2929
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
30-
ags="generate --artifact-id "scala-akka-petstore-client" -t modules/openapi-generator/src/main/resources/scala-akka-client -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-akka -o samples/openapi3/client/petstore/scala-akka $@"
30+
ags="generate --artifact-id "scala-akka-petstore-client" -t modules/openapi-generator/src/main/resources/scala-akka-client -i modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml -g scala-akka -o samples/openapi3/client/petstore/scala-akka $@"
3131

3232
java $JAVA_OPTS -jar $executable $ags

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaAkkaClientCodegen.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import java.io.Writer;
3636
import java.util.*;
3737

38-
import static org.openapitools.codegen.languages.AbstractJavaCodegen.DATE_LIBRARY;
3938
import static org.openapitools.codegen.utils.StringUtils.camelize;
4039

4140
public class ScalaAkkaClientCodegen extends AbstractScalaCodegen implements CodegenConfig {

modules/openapi-generator/src/main/resources/scala-akka-client/pom.mustache

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<plugin>
137137
<groupId>org.apache.maven.plugins</groupId>
138138
<artifactId>maven-surefire-plugin</artifactId>
139-
<version>2.20.1</version>
139+
<version>3.0.0-M4</version>
140140
<configuration>
141141
<systemProperties>
142142
<property>
@@ -146,6 +146,7 @@
146146
</systemProperties>
147147
<argLine>-Xms512m -Xmx1500m</argLine>
148148
<parallel>methods</parallel>
149+
<threadCount>4</threadCount>
149150
<forkMode>pertest</forkMode>
150151
</configuration>
151152
</plugin>
@@ -260,4 +261,4 @@
260261
</plugin>
261262
</plugins>
262263
</build>
263-
</project>
264+
</project>

0 commit comments

Comments
 (0)