diff options
author | liamfallon <liam.fallon@est.tech> | 2020-03-02 17:08:47 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2020-03-04 08:33:25 +0000 |
commit | 9e5c4b882728ebf3330568d068f109965d599410 (patch) | |
tree | 8ad948a28268b50b97946168b7a8ceab54872dc5 /testsuites/integration/integration-context-test/src/test/java | |
parent | 5922128637471bfa1897b8808561000988da733d (diff) |
Preparing integration tests for Graal Javascript
Graal enforces Javascript more strictly than Nashorn does. This review
changes the tests in apex-pdp to comply with the stricter -Javascript
checking, re-enabling the integration test module.
- All log calls must be passed as strings, using toString()
- Byte/Float/Long Java types not supported in Javascript
Disable integration tests so that other changes can be brought in.
JMS integration test is disabled for now, it will be re-enabled in a
review shortly.
Issue-ID: POLICY-2106
Change-Id: I14bdb930eff735e862b51802cf72e4793cec3699
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'testsuites/integration/integration-context-test/src/test/java')
-rw-r--r-- | testsuites/integration/integration-context-test/src/test/java/org/onap/policy/apex/testsuites/integration/context/distribution/ContextInstantiation.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/integration/integration-context-test/src/test/java/org/onap/policy/apex/testsuites/integration/context/distribution/ContextInstantiation.java b/testsuites/integration/integration-context-test/src/test/java/org/onap/policy/apex/testsuites/integration/context/distribution/ContextInstantiation.java index e954fe862..75ac4a1bb 100644 --- a/testsuites/integration/integration-context-test/src/test/java/org/onap/policy/apex/testsuites/integration/context/distribution/ContextInstantiation.java +++ b/testsuites/integration/integration-context-test/src/test/java/org/onap/policy/apex/testsuites/integration/context/distribution/ContextInstantiation.java @@ -158,7 +158,7 @@ public class ContextInstantiation { assertEquals(LONG_VAL, contextItem.getTestPolicyContextItem001().getLongValue()); assertDouble(contextItem.getTestPolicyContextItem002().getDoubleValue(), PI_VAL); - assertTrue(contextItem.getTestPolicyContextItem003().getFlag()); + assertTrue(contextItem.getTestPolicyContextItem003().isFlag()); assertEquals(contextItem.getTestPolicyContextItem004().getLongValue(), testDate.getTime()); assertEquals(TEST_HASH_MAP, contextItem.getTestPolicyContextItem005().getMapValue()); @@ -174,7 +174,7 @@ public class ContextInstantiation { final TestGlobalContextItem globalContextItem = (TestGlobalContextItem) globalContextAlbum.get(GLOBAL_CONTEXT_KEY); - assertFalse(globalContextItem.getTestGlobalContextItem000().getFlag()); + assertFalse(globalContextItem.getTestGlobalContextItem000().isFlag()); assertEquals(BYTE_VAL, globalContextItem.getTestGlobalContextItem001().getByteValue()); @@ -220,7 +220,7 @@ public class ContextInstantiation { TestExternalContextItem externalContextItem = (TestExternalContextItem) externalContextAlbum.get(EXTERNAL_CONTEXT); - assertFalse(externalContextItem.getTestExternalContextItem000().getFlag()); + assertFalse(externalContextItem.getTestExternalContextItem000().isFlag()); assertEquals(BYTE_VAL, externalContextItem.getTestExternalContextItem001().getByteValue()); assertEquals(INT_VAL, externalContextItem.getTestExternalContextItem002().getIntValue()); |