diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-07-31 15:48:07 -0400 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-08-01 14:04:24 -0400 |
commit | 74f9d832beba72c1121bef875b8e36ddb3cd5740 (patch) | |
tree | 16961ab8598f3e3b916d7a8fd97ccfdea0057dca /pomba/service-decomposition/src/test | |
parent | 46c24a62f6931364075e9bd1cd33446dfdc9575b (diff) |
Fixing issues from SONAR report
Change-Id: I69e042690f464303fed0c9188b1555adf1f06481
Issue-ID: SDNC-317
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'pomba/service-decomposition/src/test')
-rw-r--r-- | pomba/service-decomposition/src/test/java/org/onap/sdnc/apps/pomba/servicedecomposition/componenttest/mockito/WebConfigurationTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |