3 * ============LICENSE_START==========================================
5 * ===================================================================
6 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7 * ===================================================================
9 * Unless otherwise specified, all software contained herein is licensed
10 * under the Apache License, Version 2.0 (the "License");
11 * you may not use this software except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
22 * Unless otherwise specified, all documentation contained herein is licensed
23 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
24 * you may not use this documentation except in compliance with the License.
25 * You may obtain a copy of the License at
27 * https://creativecommons.org/licenses/by/4.0/
29 * Unless required by applicable law or agreed to in writing, documentation
30 * distributed under the License is distributed on an "AS IS" BASIS,
31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
35 * ============LICENSE_END============================================
37 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 package org.onap.portalapp.controller.core;
41 import org.junit.Assert;
42 import org.junit.Test;
43 import org.onap.portalapp.controller.core.AdminController.AngularSinglePageController;
44 import org.springframework.web.servlet.ModelAndView;
46 public class AdminControllerTest {
49 public void viewTest(){
50 AdminController adminController = new AdminController();
51 AngularSinglePageController angularController = adminController.new AngularSinglePageController();
52 ModelAndView modelAndView = angularController.view();
53 Assert.assertNotNull(modelAndView);
57 public void adminViewTest(){
58 AdminController adminController = new AdminController();
59 AngularSinglePageController angularController = adminController.new AngularSinglePageController();
60 ModelAndView modelAndView = angularController.adminView();
61 Assert.assertNotNull(modelAndView);