Fix Rebase Issue on Sonar Issues apex-pdp-model 75/121875/1
authorlapentafd <francesco.lapenta@est.tech>
Thu, 10 Jun 2021 15:38:21 +0000 (16:38 +0100)
committerlapentafd <francesco.lapenta@est.tech>
Thu, 10 Jun 2021 15:38:26 +0000 (16:38 +0100)
Deleting a duplicate method inserted in two different reviews

Issue-ID: POLICY-3093
Change-Id: Ie7c06c17ad1df380ebcd7129c218f5784152ff0e
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
model/basic-model/src/test/java/org/onap/policy/apex/model/basicmodel/concepts/AxKeyInfoTest.java

index 176cd60..d066d67 100644 (file)
@@ -77,27 +77,6 @@ public class AxKeyInfoTest {
 
     }
 
-    @Test
-    public void testAxKeyValidation() {
-        AxKeyInfo testKeyInfo = new AxKeyInfo();
-
-        AxArtifactKey key = new AxArtifactKey("key", "0.0.1");
-        testKeyInfo.setKey(key);
-
-        UUID uuid = UUID.randomUUID();
-        testKeyInfo.setUuid(uuid);
-        testKeyInfo.setDescription("Key Description");
-
-        assertNotEquals(0, testKeyInfo.compareTo(null));
-        assertNotEquals(0, testKeyInfo.compareTo(new AxArtifactKey()));
-        assertNotEquals(0, testKeyInfo.compareTo(new AxKeyInfo(new AxArtifactKey())));
-        assertNotEquals(0, testKeyInfo.compareTo(new AxKeyInfo(key, UUID.randomUUID(), "Some Description")));
-        assertNotEquals(0, testKeyInfo.compareTo(new AxKeyInfo(key, uuid, "Some Description")));
-        assertEquals(0, testKeyInfo.compareTo(new AxKeyInfo(key, uuid, "Key Description")));
-
-        assertNotNull(testKeyInfo.getKeys());
-    }
-
     @Test
     public void testAxKeyValidation() {
         AxKeyInfo testKeyInfo = new AxKeyInfo();