You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the Using Kotlin as described, and i to run the GreetingTest with mvn test.
Expected behavior
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.2 s - in org.acme.rest.GreetingResourceTest
Actual behavior
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.807 s
[INFO] Finished at: 2021-11-27T22:10:08+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.5.31:test-compile (test-compile) on project rest-kotlin-quickstart: Compilation failure
[ERROR] /Desktop/rest-kotlin-quickstart/src/test/kotlin/org/acme/rest/GreetingResourceTest.kt:[17,31] Unresolved reference: equalTo
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Update the code as describbed in https://quarkus.io/guides/kotlin
run mvn test
Output of uname -a or ver
Linux Precision-3551 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk 11.0.12 2021-07-20 OpenJDK Runtime Environment 18.9 (build 11.0.12+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.0
Build tool (ie. output of mvnw --version or gradlew --version)
3.8.3
Additional information
Test is failling with mvn test command, nevertheless when when we run mvn quarkus:dev`, GreetingTest fails the first time ans it passes when you hit the [r] to re-run the test.
Furhtermore, to make the the test pass with the mvn test command the following code works:
Describe the bug
I followed the Using Kotlin as described, and i to run the GreetingTest with
mvn test
.Expected behavior
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.2 s - in org.acme.rest.GreetingResourceTest
Actual behavior
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.807 s
[INFO] Finished at: 2021-11-27T22:10:08+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.5.31:test-compile (test-compile) on project rest-kotlin-quickstart: Compilation failure
[ERROR] /Desktop/rest-kotlin-quickstart/src/test/kotlin/org/acme/rest/GreetingResourceTest.kt:[17,31] Unresolved reference: equalTo
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
How to Reproduce?
Reproducer:
https://quarkus.io/guides/kotlin
mvn test
Output of
uname -a
orver
Linux Precision-3551 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk 11.0.12 2021-07-20 OpenJDK Runtime Environment 18.9 (build 11.0.12+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.8.3
Additional information
Test is failling with
mvn test command, nevertheless when when we run
mvn quarkus:dev`, GreetingTest fails the first time ans it passes when you hit the [r] to re-run the test.Furhtermore, to make the the test pass with the
mvn test command
the following code works:The text was updated successfully, but these errors were encountered: