summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-09-10 16:02:01 +0200
committerSébastien Determe <sebastien.determe@intl.att.com>2019-09-10 16:13:41 +0000
commit58b44949714b002818d20ba40d01eb50c031614d (patch)
tree373ee64a6a309686271c83a80dee103ddbd53535 /src/test
parentc85d40b0cc8f40e5d0e17019878df82170f7bb35 (diff)
Remove Dead code
Removal of useless code not used anymore in clamp because model are received from CSAR Issue-ID: CLAMP-487 Change-Id: Ifeb0411e7f7cd599cb5cf5d8f5b0e33d34bbf396 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/clamp/clds/model/sdc/SdcResourceBasicInfoTest.java106
1 files changed, 0 insertions, 106 deletions
diff --git a/src/test/java/org/onap/clamp/clds/model/sdc/SdcResourceBasicInfoTest.java b/src/test/java/org/onap/clamp/clds/model/sdc/SdcResourceBasicInfoTest.java
deleted file mode 100644
index 5adb0647a..000000000
--- a/src/test/java/org/onap/clamp/clds/model/sdc/SdcResourceBasicInfoTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ONAP CLAMP
- * ================================================================================
- * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- * Modifications copyright (c) 2018 Nokia
- * ================================================================================
- *
- */
-
-package org.onap.clamp.clds.model.sdc;
-
-import org.assertj.core.api.Assertions;
-import org.junit.Test;
-
-public class SdcResourceBasicInfoTest {
-
- @Test
- public void testHashCode() {
- SdcResourceBasicInfo sdc1a = new SdcResourceBasicInfo();
- sdc1a.setName("test1");
- sdc1a.setVersion("1.0");
-
- SdcResourceBasicInfo sdc2 = new SdcResourceBasicInfo();
- sdc2.setName("test2");
- sdc2.setVersion("2.0");
-
- SdcResourceBasicInfo sdc1b = new SdcResourceBasicInfo();
- sdc1b.setName("test1");
- sdc1b.setVersion("2.0");
-
- Assertions.assertThat(sdc1a.hashCode()).isNotEqualTo(sdc1b.hashCode());
- Assertions.assertThat(sdc1b.hashCode()).isNotEqualTo(sdc2.hashCode());
- sdc1b.setVersion("1.0");
- Assertions.assertThat(sdc1a.hashCode()).isEqualTo(sdc1b.hashCode());
-
- }
-
- @Test
- public void testCompareTo() {
- SdcResourceBasicInfo sdc1a = new SdcResourceBasicInfo();
- sdc1a.setName("test1");
- sdc1a.setVersion("1.0");
-
- SdcResourceBasicInfo sdc1b = new SdcResourceBasicInfo();
- sdc1b.setName("test1");
- sdc1b.setVersion("2.0");
-
- SdcResourceBasicInfo sdc2 = new SdcResourceBasicInfo();
- sdc2.setName("test2");
- sdc2.setVersion("2.0");
-
- Assertions.assertThat(sdc1a.compareTo(sdc1b)).isEqualTo(-1);
- Assertions.assertThat(sdc1b.compareTo(sdc1a)).isEqualTo(1);
- Assertions.assertThat(sdc1a.compareTo(sdc1a)).isEqualTo(0);
- Assertions.assertThat(sdc1a.compareTo(sdc2)).isEqualTo(-1);
- }
-
- @Test
- public void testEquals() {
- SdcResourceBasicInfo sdc1a = new SdcResourceBasicInfo();
- sdc1a.setName("test1");
- sdc1a.setVersion("1.0");
-
- SdcResourceBasicInfo sdc1b = new SdcResourceBasicInfo();
- sdc1b.setName("test1");
- sdc1b.setVersion("2.0");
-
- SdcResourceBasicInfo sdc2 = new SdcResourceBasicInfo();
- sdc2.setName("test2");
- sdc2.setVersion("2.0");
-
- Assertions.assertThat(sdc1a.equals(sdc1a)).isTrue();
- Assertions.assertThat(sdc1a.equals(sdc1b)).isFalse();
-
- sdc1b.setVersion(null);
- Assertions.assertThat(sdc1a.equals(sdc1b)).isFalse();
- sdc1b.setVersion("1.0");
- Assertions.assertThat(sdc1a.equals(sdc1b)).isTrue();
- sdc1a.setVersion(null);
- sdc1b.setVersion(null);
- Assertions.assertThat(sdc1a.equals(sdc1b)).isTrue();
-
- sdc1b.setName(null);
- Assertions.assertThat(sdc1a.equals(sdc1b)).isFalse();
- sdc1b.setName("test1");
- Assertions.assertThat(sdc1a.equals(sdc1b)).isTrue();
- sdc1a.setName(null);
- sdc1b.setName(null);
- Assertions.assertThat(sdc1a.equals(sdc1b)).isTrue();
- }
-
-}