Details
-
Bug
-
Status: Closed
-
Low
-
Resolution: Done
-
Casablanca Release, Dublin Release
-
None
Description
The test fail on drools-pdp occurs as shown in the log below. Ensure JAVA_HOME is not set in the environment of the computer on which the test is run and you get the error below.
Workaround is to ensure JAVA_HOME is set.
[ERROR] Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.633 s <<< FAILURE! - in org.onap.policy.drools.system.PolicyEngineManagerTest
[ERROR] testSetEnvironment_testGetEnvironment_testGetEnvironmentProperty_setEnvironmentProperty(org.onap.policy.drools.system.PolicyEngineManagerTest) Time elapsed: 0.01 s <<< FAILURE!
java.lang.AssertionError
at org.onap.policy.drools.system.PolicyEngineManagerTest.testSetEnvironment_testGetEnvironment_testGetEnvironmentProperty_setEnvironmentProperty(PolicyEngineManagerTest.java:356)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] PolicyEngineManagerTest.testSetEnvironment_testGetEnvironment_testGetEnvironmentProperty_setEnvironmentProperty:356
[INFO]
[ERROR] Tests run: 37, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.277 s
[INFO] Finished at: 2018-10-31T15:53:01Z
[INFO] Final Memory: 83M/2083M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project policy-management: There are test failures.
[ERROR]
[ERROR] Please refer to /home/liam/git/onap/policy/drools-pdp/policy-management/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[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