diff --git a/examples/gatling/build.gradle b/examples/gatling/build.gradle index 5dbce67c0..1b210cdb2 100644 --- a/examples/gatling/build.gradle +++ b/examples/gatling/build.gradle @@ -28,6 +28,9 @@ sourceSets { exclude '**/*.java' exclude '**/*.scala' } + scala { + srcDirs = ['src/test/java'] + } } } diff --git a/examples/gatling/src/test/java/mock/CatsGatlingSimulation.scala b/examples/gatling/src/test/java/mock/CatsGatlingSimulation.scala index 5524aa91a..266858b87 100755 --- a/examples/gatling/src/test/java/mock/CatsGatlingSimulation.scala +++ b/examples/gatling/src/test/java/mock/CatsGatlingSimulation.scala @@ -1,5 +1,6 @@ package mock +import scala.language.postfixOps import io.gatling.core.Predef._ import io.gatling.http.Predef._ diff --git a/examples/gatling/src/test/java/mock/CatsKarateSimulation.scala b/examples/gatling/src/test/java/mock/CatsKarateSimulation.scala index 96a67e5e1..2583f9dc3 100755 --- a/examples/gatling/src/test/java/mock/CatsKarateSimulation.scala +++ b/examples/gatling/src/test/java/mock/CatsKarateSimulation.scala @@ -1,5 +1,6 @@ package mock +import scala.language.postfixOps import com.intuit.karate.gatling.PreDef._ import io.gatling.core.Predef._ import scala.concurrent.duration._