Keep only clean TestCases, remove 2 license issues
[aaf/authz.git] / auth / auth-core / src / test / java / org / onap / aaf / auth / server / test / JU_JettyServiceStarter.java
1 /*******************************************************************************
2  * ============LICENSE_START====================================================
3  * * org.onap.aaf
4  * * ===========================================================================
5  * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * * ===========================================================================
7  * * Licensed under the Apache License, Version 2.0 (the "License");
8  * * you may not use this file except in compliance with the License.
9  * * You may obtain a copy of the License at
10  * * 
11  *  *      http://www.apache.org/licenses/LICENSE-2.0
12  * * 
13  *  * Unless required by applicable law or agreed to in writing, software
14  * * distributed under the License is distributed on an "AS IS" BASIS,
15  * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * * See the License for the specific language governing permissions and
17  * * limitations under the License.
18  * * ============LICENSE_END====================================================
19  * *
20  * *
21  ******************************************************************************/
22 package org.onap.aaf.auth.server.test;
23
24 import static org.junit.Assert.*;
25
26 import org.onap.aaf.auth.env.AuthzEnv;
27 import org.onap.aaf.auth.env.AuthzTrans;
28 import org.onap.aaf.auth.org.OrganizationException;
29 import org.onap.aaf.auth.server.AbsService;
30 import org.onap.aaf.auth.server.JettyServiceStarter;
31 import org.onap.aaf.cadi.Access;
32 import org.onap.aaf.cadi.CadiException;
33 import org.onap.aaf.cadi.LocatorException;
34 import org.onap.aaf.cadi.PropAccess;
35 import org.onap.aaf.cadi.register.Registrant;
36 import org.onap.aaf.misc.env.Trans;
37 import org.onap.aaf.misc.env.impl.BasicEnv;
38 import org.onap.aaf.misc.rosetta.env.RosettaEnv;
39 import org.junit.Test;
40
41 import static org.mockito.Mockito.mock;
42 import static org.mockito.Mockito.when;
43
44 import javax.servlet.Filter;
45
46 import org.junit.Before;
47 import org.junit.Test;
48 import org.junit.runner.RunWith;
49 import org.mockito.Mock;
50
51 public class JU_JettyServiceStarter {
52         private PropAccess propAccess = new PropAccess();
53         private JettyServiceStarter<AuthzEnv,AuthzTrans> jss;
54         class TestService extends AbsService{
55
56                 public TestService(Access access, BasicEnv env) throws CadiException {
57                         super(access, env);
58                         // TODO Auto-generated constructor stub
59                 }
60
61                 @Override
62                 public Filter[] filters() throws CadiException, LocatorException {
63                         // TODO Auto-generated method stub
64                         return null;
65                 }
66
67                 @Override
68                 public Registrant[] registrants(int port) throws CadiException, LocatorException {
69                         // TODO Auto-generated method stub
70                         return null;
71                 }
72                 
73         }
74         @SuppressWarnings("unchecked")
75         @Before
76         public void setUp() throws OrganizationException, CadiException {
77                 Access access = mock(Access.class);
78                 
79                 BasicEnv bEnv = mock(BasicEnv.class);
80                 Trans trans = mock(Trans.class);  //TODO: Fix this once Gabe has services running to see correct output without mock
81                 //TestService testService = new TestService(access, bEnv);
82                 //jss = new JettyServiceStarter<AuthzEnv,AuthzTrans>(testService);
83         }
84         
85 //      @Test
86 //      public void netYetTested() {
87 //              fail("Tests not yet implemented");
88 //      }
89         
90         @Test
91         public void testPropertyAdjustment() {
92                 //jss._propertyAdjustment();
93         }
94
95 }