added svcapi ui and camunda code
[it/otf.git] / otf-service-api / src / test / java / org / oran / otf / api / tests / unit / models / ExecutionTest.java
diff --git a/otf-service-api/src/test/java/org/oran/otf/api/tests/unit/models/ExecutionTest.java b/otf-service-api/src/test/java/org/oran/otf/api/tests/unit/models/ExecutionTest.java
new file mode 100644 (file)
index 0000000..966ee76
--- /dev/null
@@ -0,0 +1,107 @@
+/*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
+#                                                                              #\r
+#   Licensed under the Apache License, Version 2.0 (the "License");            #\r
+#   you may not use this file except in compliance with the License.           #\r
+#   You may obtain a copy of the License at                                    #\r
+#                                                                              #\r
+#       http://www.apache.org/licenses/LICENSE-2.0                             #\r
+#                                                                              #\r
+#   Unless required by applicable law or agreed to in writing, software        #\r
+#   distributed under the License is distributed on an "AS IS" BASIS,          #\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
+#   See the License for the specific language governing permissions and        #\r
+#   limitations under the License.                                             #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.api.tests.unit.models;\r
+\r
+import org.oran.otf.common.model.TestExecution;\r
+import org.assertj.core.api.Assertions;\r
+import org.junit.BeforeClass;\r
+import org.junit.Test;\r
+\r
+public class ExecutionTest {\r
+  private static TestExecution testExecution;\r
+\r
+  @BeforeClass\r
+  public static void setup(){\r
+    testExecution = new TestExecution();\r
+  }\r
+\r
+  @Test\r
+  public void testExecutionHasGroupIdField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("groupId");\r
+  }\r
+  @Test\r
+  public void testExecutionHasExecutorIdField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("executorId");\r
+  }\r
+  @Test\r
+  public void testExecutionHasAsyncField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("async");\r
+  }\r
+  @Test\r
+  public void testExecutionHasStartTimeField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("startTime");\r
+  }\r
+  @Test\r
+  public void testExecutionHasEndTimeField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("endTime");\r
+  }\r
+  @Test\r
+  public void testExecutionHasAsyncTopicField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("asyncTopic");\r
+  }\r
+  @Test\r
+  public void testExecutionHasBussinessKeyField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("businessKey");\r
+  }\r
+  @Test\r
+  public void testExecutionHasProcessInstanceIdField(){\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("processInstanceId");\r
+  }\r
+  @Test\r
+  public void testExecutionHasTestResultField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("testResult");\r
+  }\r
+  @Test\r
+  public void testExecutionHasTestResultMessageField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("testResultMessage");\r
+  }\r
+  @Test\r
+  public void testExecutionHasTestDetailsField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("testDetails");\r
+  }\r
+  @Test\r
+  public void testExecutionHasTestHeadResultsField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("testHeadResults");\r
+  }\r
+  @Test\r
+  public void testExecutionHasTestInstanceResultsField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("testInstanceResults");\r
+  }\r
+  @Test\r
+  public void testExecutionHasHistoricEmailField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("historicEmail");\r
+  }\r
+  @Test\r
+  public void testExecutionHasHistoricTestInstanceField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("historicTestInstance");\r
+  }\r
+  @Test\r
+  public void testExecutionHasHistoricTestDefinitionField(){\r
+\r
+    Assertions.assertThat(testExecution).hasFieldOrProperty("historicTestDefinition");\r
+  }\r
+\r
+}\r