diff options
author | waynedunican <wayne.dunican@est.tech> | 2020-08-14 11:24:14 +0100 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2020-08-17 14:13:13 +0100 |
commit | a73217b479a500fb9420dbcb453a134ec8d1eee7 (patch) | |
tree | 4f5055eb69f4df57015090cb2498e6045b8874ee /model/engine-model | |
parent | 1798f96670cc2d182628332ffec5e012816c82ea (diff) |
SONAR fixes - assert dissimiliar types
Fix for assertions comparing dissimiliar types.
Issue-ID: POLICY-2761
Change-Id: I1b2b8afa3e6308cda887d73a4ee079709847d054
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'model/engine-model')
-rw-r--r-- | model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java b/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java index 9d1c7bf44..5c87e5621 100644 --- a/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java +++ b/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java @@ -101,7 +101,7 @@ public class EngineModelTest { // disabling sonar because this code tests the equals() method assertEquals(model, model); // NOSONAR assertEquals(model, clonedModel); - assertNotEquals(model, "Hello"); + assertNotEquals(model, (Object) "Hello"); assertNotEquals(model, new AxEngineModel(new AxArtifactKey())); assertNotEquals(model, new AxEngineModel(new AxArtifactKey(), new AxContextSchemas(schemasKey), new AxKeyInformation(keyInfoKey), new AxContextAlbums(albumKey), AxEngineState.READY, stats)); |