aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain
diff options
context:
space:
mode:
Diffstat (limited to 'UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain')
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/DomainsTest.java34
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/PrioritiesTest.java34
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SeverityTest.java35
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/StateTest.java34
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SysLogSeverityTest.java34
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/TcaAlertActionTest.java43
-rwxr-xr-xUniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/VnfStatusTest.java35
7 files changed, 249 insertions, 0 deletions
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/DomainsTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/DomainsTest.java
new file mode 100755
index 0000000..7185954
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/DomainsTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class DomainsTest {
+ @Test
+ public void testDomains(){
+ assertNotNull(Domains.DOMAIN_FAULT);
+ String value = Domains.DOMAIN_FAULT.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/PrioritiesTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/PrioritiesTest.java
new file mode 100755
index 0000000..1894562
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/PrioritiesTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class PrioritiesTest {
+ @Test
+ public void testPriorities() {
+ assertNotNull(Priorities.HIGH);
+ String value = Priorities.HIGH.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SeverityTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SeverityTest.java
new file mode 100755
index 0000000..ca32b4a
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SeverityTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+public class SeverityTest {
+ @Test
+ public void testSeverityTest() {
+ assertNotNull(Severity.SEVERITY_CRITICAL);
+ String value = Severity.SEVERITY_CRITICAL.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/StateTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/StateTest.java
new file mode 100755
index 0000000..d25ff13
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/StateTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class StateTest {
+ @Test
+ public void testState() {
+ assertNotNull(State.STATE_IN_SERVICE);
+ String value = State.STATE_IN_SERVICE.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SysLogSeverityTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SysLogSeverityTest.java
new file mode 100755
index 0000000..4ebb91b
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/SysLogSeverityTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class SysLogSeverityTest {
+ @Test
+ public void testSysLogSeverity() {
+ assertNotNull(SysLogSeverity.SEVERITY_ALERT);
+ String value = SysLogSeverity.SEVERITY_ALERT.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/TcaAlertActionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/TcaAlertActionTest.java
new file mode 100755
index 0000000..dbc3c88
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/TcaAlertActionTest.java
@@ -0,0 +1,43 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class TcaAlertActionTest {
+ @Test
+ public void testTcaAlertAction() {
+ assertNotNull(TcaAlertAction.CLEAR);
+ String value = TcaAlertAction.CLEAR.getValue();
+ assertNotNull(value);
+ assertNotNull(TcaAlertType.CARD_ANOMALY);
+ value = TcaAlertType.CARD_ANOMALY.getValue();
+ assertNotNull(value);
+ assertNotNull(TcaCounterCriticality.CRITICAL);
+ value = TcaCounterCriticality.CRITICAL.getValue();
+ assertNotNull(value);
+ assertNotNull(TcaEventSeverity.SEVERITY_CRITICAL);
+ value = TcaEventSeverity.SEVERITY_CRITICAL.getValue();
+ assertNotNull(value);
+ }
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/VnfStatusTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/VnfStatusTest.java
new file mode 100755
index 0000000..a0e2478
--- /dev/null
+++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/domain/VnfStatusTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright (C) 2022 Huawei. 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=========================================================
+ */
+
+package org.onap.universalvesadapter.domain;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+public class VnfStatusTest {
+ @Test
+ public void testVnfStatus() {
+ assertNotNull(VnfStatus.VFSTATUS_ACTIVE);
+ String value = VnfStatus.VFSTATUS_ACTIVE.getValue();
+ assertNotNull(value);
+ }
+
+}