1 /*******************************************************************************
2 * ============LICENSE_START====================================================
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
11 * * http://www.apache.org/licenses/LICENSE-2.0
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====================================================
21 ******************************************************************************/
22 package org.onap.aaf.auth.rserv.test;
24 import static org.junit.Assert.*;
26 import java.io.IOException;
28 import javax.servlet.ServletException;
29 import javax.servlet.http.HttpServletRequest;
30 import javax.servlet.http.HttpServletResponse;
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;
41 @RunWith(PowerMockRunner.class)
42 public class JU_CodeSetter {
43 //TODO: Gabe [JUnit] Not visible for junit
44 //CodeSetter codeSetter;
48 HttpServletRequest reqMock;
50 HttpServletResponse respMock;
52 // @Before //TODO: Fix this AAF-111
53 // public void setUp(){
54 // codeSetter = new CodeSetter(transMock, reqMock, respMock);
57 // @SuppressWarnings("rawtypes")
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);
69 // public void netYetTested() {
70 // fail("Tests not yet implemented");