diff options
Diffstat (limited to 'vnf-sdk-function-test/src/test')
2 files changed, 36 insertions, 0 deletions
diff --git a/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functest/resource/CommonManagerTest.java b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functest/resource/CommonManagerTest.java index 9336abf..8869ca3 100644 --- a/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functest/resource/CommonManagerTest.java +++ b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functest/resource/CommonManagerTest.java @@ -22,11 +22,14 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; +import java.util.HashMap; +import java.util.Map; import javax.ws.rs.core.Response; import org.junit.Before; import org.junit.Test; +import org.openo.vnfsdk.functest.responsehandler.VnfFuncTestResponseHandler; public class CommonManagerTest { @@ -49,6 +52,10 @@ public class CommonManagerTest { @Test public void testQueryResultWhenInstanceIdPresent() { + + Map<String, String> mapConfigValues = new HashMap<String, String>(); + mapConfigValues.put("DIR_RESULT", ".\\src\\test\\resources"); + VnfFuncTestResponseHandler.getInstance().setConfigMap(mapConfigValues); Response response = commonManger.queryResultByFuncTest("59d1e651-df9f-4008-902f-e3b377e6ec30"); assertNotNull(response); } diff --git a/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppConfigurationTest.java b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppConfigurationTest.java new file mode 100644 index 0000000..4c06c1f --- /dev/null +++ b/vnf-sdk-function-test/src/test/java/org/openo/vnfsdk/functests/VnfSdkFuncTestAppConfigurationTest.java @@ -0,0 +1,29 @@ +/* + * Copyright 2017 Huawei Technologies Co., Ltd. + * + * 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. + */ + +package org.openo.vnfsdk.functests; + +import org.junit.Test; +import org.openo.vnfsdk.functest.VnfSdkFuncTestAppConfiguration; + +public class VnfSdkFuncTestAppConfigurationTest { + + @Test + public void vnfSdkFuncTestBean() { + VnfSdkFuncTestAppConfiguration vnfSdkBean = new VnfSdkFuncTestAppConfiguration(); + } + +} |