2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.apihandlerinfra;
\r
23 import org.junit.After;
\r
25 import static org.junit.Assert.assertEquals;
\r
27 import org.junit.Before;
\r
28 import org.junit.Test;
\r
30 import static org.mockito.Mockito.mock;
\r
31 import static org.mockito.Mockito.verify;
\r
32 import static org.mockito.Mockito.when;
\r
35 public class RecipeLookupResultTest {
\r
37 RecipeLookupResult instance;
\r
39 public RecipeLookupResultTest() {
\r
43 public void setUp() {
\r
44 instance = mock(RecipeLookupResult.class);
\r
48 public void tearDown() {
\r
53 * Test of getOrchestrationURI method
\r
56 public void testGetOrchestrationURI() {
\r
57 String expResult = "orchestrationURI";
\r
58 when(instance.getOrchestrationURI()).thenReturn(expResult);
\r
59 String result = instance.getOrchestrationURI();
\r
60 assertEquals(expResult, result);
\r
65 * Test of setOrchestrationURI method.
\r
68 public void testSetOrchestrationURI() {
\r
69 String orchestrationUri = "orchestrationURI";
\r
70 instance.setOrchestrationURI(orchestrationUri);
\r
71 verify(instance).setOrchestrationURI(orchestrationUri);
\r
75 * Test of getRecipeTimeout method
\r
78 public void testGetRecipeTimeout() {
\r
80 when(instance.getRecipeTimeout()).thenReturn(expResult);
\r
81 int result = instance.getRecipeTimeout();
\r
82 assertEquals(expResult, result);
\r
87 * Test of setRecipeTimeout method.
\r
90 public void testSetRecipeTimeout() {
\r
91 int recipeTimeOut = 10;
\r
92 instance.setRecipeTimeout(recipeTimeOut);
\r
93 verify(instance).setRecipeTimeout(10);
\r