diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-03-02 01:46:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-02 01:46:48 +0000 |
commit | 4173b9c7e3143733ee3133c6416472cf8db46e3f (patch) | |
tree | 9d0ac499859fcae131087704946db7dd91f8bda9 /ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java | |
parent | 96787c49cd192096916e482e5b55e91652de3817 (diff) | |
parent | 0700858c2333e9b82604b2732cb4a705af707bed (diff) |
Merge "Added Junits for ONAP-SDK-APP"
Diffstat (limited to 'ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java')
-rw-r--r-- | ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java b/ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java new file mode 100644 index 000000000..81bf7e95a --- /dev/null +++ b/ONAP-SDK-APP/src/test/java/org/onap/portalapp/conf/ExternalAppInitializerTest.java @@ -0,0 +1,45 @@ +/*- + * ================================================================================ + * ONAP Portal SDK + * ================================================================================ + * Copyright (C) 2018 AT&T Intellectual Property + * ================================================================================ + * 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.onap.portalapp.conf; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +public class ExternalAppInitializerTest { + + @Test + public void testExternalAppInitializer(){ + ExternalAppInitializer initializer = new ExternalAppInitializer(); + assertTrue(initializer.getRootConfigClasses()!=null); + assertTrue(initializer.getServletConfigClasses()!=null); + assertTrue(initializer.getServletMappings()!=null); + } + + @Test + public void testExternalAppConfig(){ + ExternalAppConfig appConfig = new ExternalAppConfig(); + assertTrue(appConfig.dataAccessService()!=null); + assertTrue(appConfig.addTileDefinitions()!=null); + assertTrue(appConfig.cacheManager()!=null); + assertTrue(appConfig.loginStrategy()!=null); + assertTrue(appConfig.viewResolver()!=null); + } +} |