From 74f9d832beba72c1121bef875b8e36ddb3cd5740 Mon Sep 17 00:00:00 2001 From: "Tait,Trevor(rt0435)" Date: Tue, 31 Jul 2018 15:48:07 -0400 Subject: Fixing issues from SONAR report Change-Id: I69e042690f464303fed0c9188b1555adf1f06481 Issue-ID: SDNC-317 Signed-off-by: Tait,Trevor(rt0435) --- .../componenttest/mockito/WebConfigurationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pomba/service-decomposition/src/test') diff --git a/pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/componenttest/mockito/WebConfigurationTest.java b/pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/componenttest/mockito/WebConfigurationTest.java index 9728a48..11d58cb 100644 --- a/pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/componenttest/mockito/WebConfigurationTest.java +++ b/pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/componenttest/mockito/WebConfigurationTest.java @@ -19,6 +19,7 @@ package org.onap.sdnc.apps.pomba.servicedecomposition.componenttest.mockito; import static junit.framework.TestCase.assertEquals; +import static org.mockito.Mockito.mock; import org.junit.Test; import org.onap.sdnc.apps.pomba.servicedecomposition.WebConfiguration; @@ -30,7 +31,7 @@ public class WebConfigurationTest { public void runTest() { WebConfiguration webConfiguration = new WebConfiguration(); WebMvcConfigurerAdapter webMvcConfigurerAdapter = webConfiguration.forwardToIndex(); - ViewResolverRegistry registry = new ViewResolverRegistry(); + ViewResolverRegistry registry = mock(ViewResolverRegistry.class); webMvcConfigurerAdapter.configureViewResolvers(registry); assertEquals(registry.hasRegistrations(), false); } -- cgit 1.2.3-korg