Skip to content

Commit

Permalink
Test scala akka petstore client in CI (OpenAPITools#6118)
Browse files Browse the repository at this point in the history
* test scala akka in ci

* fix compilation error

* fix scala akka test

* add tests
  • Loading branch information
wing328 authored and MikailBag committed May 31, 2020
1 parent 761470f commit 52cfcf4
Show file tree
Hide file tree
Showing 9 changed files with 879 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/openapi3/scala-akka-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
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 $@"
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 $@"

java $JAVA_OPTS -jar $executable $ags
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import java.io.Writer;
import java.util.*;

import static org.openapitools.codegen.languages.AbstractJavaCodegen.DATE_LIBRARY;
import static org.openapitools.codegen.utils.StringUtils.camelize;

public class ScalaAkkaClientCodegen extends AbstractScalaCodegen implements CodegenConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<version>3.0.0-M4</version>
<configuration>
<systemProperties>
<property>
Expand All @@ -146,6 +146,7 @@
</systemProperties>
<argLine>-Xms512m -Xmx1500m</argLine>
<parallel>methods</parallel>
<threadCount>4</threadCount>
<forkMode>pertest</forkMode>
</configuration>
</plugin>
Expand Down Expand Up @@ -260,4 +261,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Loading

0 comments on commit 52cfcf4

Please sign in to comment.