From 7a59728f0d4cc0964bed2e4575a8f02de59f385f Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 24 Feb 2020 15:11:35 -0500 Subject: Add PipelineUtil Issue-ID: POLICY-2385 Signed-off-by: Jim Hahn Change-Id: I7745e8286dd6f086941b979f16b2328bfa066788 --- .../pipeline/PipelineUtilTest.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/PipelineUtilTest.java (limited to 'models-interactions/model-actors/actorServiceProvider/src/test') diff --git a/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/PipelineUtilTest.java b/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/PipelineUtilTest.java new file mode 100644 index 000000000..fbcacbf30 --- /dev/null +++ b/models-interactions/model-actors/actorServiceProvider/src/test/java/org/onap/policy/controlloop/actorserviceprovider/pipeline/PipelineUtilTest.java @@ -0,0 +1,37 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP + * ================================================================================ + * Copyright (C) 2020 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========================================================= + */ + +package org.onap.policy.controlloop.actorserviceprovider.pipeline; + +import static org.assertj.core.api.Assertions.assertThatThrownBy; + +import org.junit.Test; +import org.onap.policy.controlloop.actorserviceprovider.parameters.ControlLoopOperationParams; + +public class PipelineUtilTest { + + @Test + public void testPipelineUtil() { + ControlLoopOperationParams params = ControlLoopOperationParams.builder().build(); + PipelineUtil util = new PipelineUtil(params); + + assertThatThrownBy(() -> util.start()).isInstanceOf(UnsupportedOperationException.class); + } +} -- cgit