added svcapi ui and camunda code
[it/otf.git] / otf-service-api / src / test / java / org / oran / otf / api / tests / unit / models / local / ParallelFlowInputTest.java
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 #   you may not use this file except in compliance with the License.           #\r
5 #   You may obtain a copy of the License at                                    #\r
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\r
9 #   Unless required by applicable law or agreed to in writing, software        #\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 #   See the License for the specific language governing permissions and        #\r
13 #   limitations under the License.                                             #\r
14 ##############################################################################*/\r
15 \r
16 \r
17 package org.oran.otf.api.tests.unit.models.local;\r
18 \r
19 import org.oran.otf.common.model.local.ParallelFlowInput;\r
20 import org.assertj.core.api.Assertions;\r
21 import org.junit.BeforeClass;\r
22 import org.junit.Test;\r
23 \r
24 public class ParallelFlowInputTest {\r
25   private static ParallelFlowInput parallelFlowInput;\r
26   @BeforeClass\r
27   public static void setup(){\r
28     parallelFlowInput = new ParallelFlowInput();\r
29   }\r
30   @Test\r
31   public void testParallelFlowInputHasArgsField(){\r
32     Assertions.assertThat(parallelFlowInput).hasFieldOrProperty("args");\r
33   }\r
34   @Test\r
35   public void testParallelFlowInputHasInterruptOnFailureField(){\r
36     Assertions.assertThat(parallelFlowInput).hasFieldOrProperty("interruptOnFailure");\r
37   }\r
38   @Test\r
39   public void testParallelFlowInputHasMaxFailuresField(){\r
40     Assertions.assertThat(parallelFlowInput).hasFieldOrProperty("maxFailures");\r
41   }\r
42   @Test\r
43   public void testParallelFlowInputHasThreadPoolSizeField(){\r
44     Assertions.assertThat(parallelFlowInput).hasFieldOrProperty("threadPoolSize");\r
45   }\r
46 \r
47 }\r