Keep only clean TestCases, remove 2 license issues
[aaf/authz.git] / auth / auth-core / src / test / java / org / onap / aaf / auth / rserv / test / JU_CodeSetter.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.rserv.test;
23
24 import static org.junit.Assert.*;
25
26 import java.io.IOException;
27
28 import javax.servlet.ServletException;
29 import javax.servlet.http.HttpServletRequest;
30 import javax.servlet.http.HttpServletResponse;
31
32 import org.junit.Before;
33 import org.junit.Test;
34 import org.junit.runner.RunWith;
35 import org.mockito.Mock;
36 //import org.onap.aaf.auth.rserv.CodeSetter;
37 import org.onap.aaf.auth.rserv.Route;
38 import org.onap.aaf.misc.env.Trans;
39 import org.powermock.modules.junit4.PowerMockRunner;
40
41 @RunWith(PowerMockRunner.class)
42 public class JU_CodeSetter {
43         //TODO: Gabe [JUnit] Not visible for junit
44         //CodeSetter codeSetter;
45         @Mock
46         Trans transMock;
47         @Mock
48         HttpServletRequest reqMock;
49         @Mock
50         HttpServletResponse respMock;
51         
52 //      @Before                                                                 //TODO: Fix this AAF-111
53 //      public void setUp(){
54 //              codeSetter = new CodeSetter(transMock, reqMock, respMock);
55 //      }
56 //      
57 //      @SuppressWarnings("rawtypes")
58 //      @Mock
59 //      Route routeMock;
60 //      
61 //      @Test
62 //      public void testMatches() throws IOException, ServletException{
63 //              boolean result = codeSetter.matches(routeMock);
64 //              System.out.println("value of res " + codeSetter.matches(routeMock));
65 //              assertFalse(result);
66 //      }
67         
68 //      @Test
69 //      public void netYetTested() {
70 //              fail("Tests not yet implemented");
71 //      }
72
73 }