From: luxin Date: Tue, 30 Jan 2018 07:30:39 +0000 (+0800) Subject: Fix the failed UT case X-Git-Tag: v1.1.0~33 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=66cdc4e1b6bbf806a5e0d31904056fd3ef12c54e;p=vfc%2Fnfvo%2Fresmanagement.git Fix the failed UT case Change-Id: I35aea98170b1fd9cd7fac486dd161af5f52486fd Issue-ID: VFC-672 Signed-off-by: luxin --- diff --git a/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/TestRestfulFactory.java b/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/TestRestfulFactory.java index bd2acf7..4d55a7a 100644 --- a/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/TestRestfulFactory.java +++ b/ResmanagementService/service/src/test/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/TestRestfulFactory.java @@ -17,7 +17,6 @@ package org.onap.vfc.nfvo.resmanagement.common.util.restclient; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; import org.junit.After; import org.junit.AfterClass; @@ -89,7 +88,7 @@ public class TestRestfulFactory { @Test public void testGetRestInstance() { Restful instance = RestfulFactory.getRestInstance("https"); - assertNull(instance); + new MockUp() { @Mock