diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-07-23 16:49:03 -0400 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-08-08 14:14:22 -0400 |
commit | 6dcf97a8e2160f9d54a3a155a36f4c4fa7e35f0d (patch) | |
tree | 9d640649b9dd671375a415994dba8dc6538a6c3d /src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java | |
parent | a5ca3ae3f9729fa628042e17ea78dde99706be76 (diff) |
Initial Network Discovery Context Builder code
Issue-ID: LOG-401
Change-Id: Id7211386f5eb7f9de2706037fbaf336c636e906c
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java')
-rw-r--r-- | src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java b/src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java new file mode 100644 index 0000000..1c97aa8 --- /dev/null +++ b/src/test/java/org/onap/pomba/contextbuilder/networkdiscovery/test/WebConfigurationTest.java @@ -0,0 +1,40 @@ +/*
+ * ============LICENSE_START===================================================
+ * Copyright (c) 2018 Amdocs
+ * ============================================================================
+ * 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.
+ * ============LICENSE_END=====================================================
+ */
+
+package org.onap.pomba.contextbuilder.networkdiscovery.test;
+
+import static junit.framework.TestCase.assertEquals;
+import static org.mockito.Mockito.mock;
+
+import org.junit.Test;
+import org.onap.pomba.contextbuilder.networkdiscovery.WebConfiguration;
+import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
+
+
+public class WebConfigurationTest {
+ @Test
+ public void runTest() {
+ WebConfiguration webConfiguration = new WebConfiguration();
+ WebMvcConfigurerAdapter webMvcConfigurerAdapter = webConfiguration.forwardToIndex();
+ ViewResolverRegistry registry = mock(ViewResolverRegistry.class);
+ webMvcConfigurerAdapter.configureViewResolvers(registry);
+ assertEquals(false, registry.hasRegistrations());
+ }
+
+}
|