diff --git a/README.md b/README.md index f18936b..96bb694 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Build](https://github.com/fherbreteau/gatling-sftp/actions/workflows/maven.yml/badge.svg) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fherbreteau_gatling-sftp&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fherbreteau_gatling-sftp) -Plugin for support performance testing with SFTP in Gatling (3.10.x) +Plugin for support performance testing with SFTP in Gatling (3.11.x) # Usage diff --git a/src/test/java/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation2.java b/src/test/java/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation2.java index 5f8cf23..9f63961 100644 --- a/src/test/java/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation2.java +++ b/src/test/java/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation2.java @@ -1,7 +1,5 @@ package io.github.fherbreteau.gatling.sftp.examples; -import io.gatling.app.Gatling; -import io.gatling.core.config.GatlingPropertiesBuilder; import io.gatling.javaapi.core.ScenarioBuilder; import io.gatling.javaapi.core.Simulation; import io.github.fherbreteau.gatling.sftp.javaapi.protocol.SftpProtocolBuilder; @@ -36,9 +34,4 @@ public class SftpSimulation2 extends Simulation { { setUp(scn.injectOpen(atOnceUsers(1)).protocols(sftpProtocol)); } - - public static void main(String[] args) { - int exitCode = Gatling.fromMap(new GatlingPropertiesBuilder().simulationClass(SftpSimulation2.class.getName()).build()); - System.exit(exitCode); - } } diff --git a/src/test/scala/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation.scala b/src/test/scala/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation.scala index ed306c0..9efb9eb 100644 --- a/src/test/scala/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation.scala +++ b/src/test/scala/io/github/fherbreteau/gatling/sftp/examples/SftpSimulation.scala @@ -1,8 +1,6 @@ package io.github.fherbreteau.gatling.sftp.examples -import io.gatling.app.Gatling import io.gatling.core.Predef._ -import io.gatling.core.config.GatlingPropertiesBuilder import io.gatling.core.structure.ScenarioBuilder import io.github.fherbreteau.gatling.sftp.Predef.sftp import io.github.fherbreteau.gatling.sftp.protocol.SftpProtocolBuilder @@ -36,11 +34,3 @@ class SftpSimulation extends Simulation { .delete("file_to_upload")) setUp(scn.inject(atOnceUsers(1)).protocols(sftpProtocol)) } - -object SftpSimulation { - def main(args: Array[String]): Unit = { - val exitCode = Gatling.fromMap((new GatlingPropertiesBuilder) - .simulationClass(classOf[io.github.fherbreteau.gatling.sftp.examples.SftpSimulation].getName).build) - sys.exit(exitCode); - } -}