Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1241

Test failure in drools-pdp if JAVA_HOME is not set


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • Dublin Release
    • Casablanca Release, Dublin Release
    • None

      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!
      at org.onap.policy.drools.system.PolicyEngineManagerTest.testSetEnvironment_testGetEnvironment_testGetEnvironmentProperty_setEnvironmentProperty(PolicyEngineManagerTest.java:356)

      [INFO] Results:
      [ERROR] Failures:
      [ERROR] PolicyEngineManagerTest.testSetEnvironment_testGetEnvironment_testGetEnvironmentProperty_setEnvironmentProperty:356
      [ERROR] Tests run: 37, Failures: 1, Errors: 0, Skipped: 0
      [INFO] ------------------------------------------------------------------------
      [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] 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] 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] 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

            pars pars
            liamfallon liamfallon
            0 Vote for this issue
            3 Start watching this issue