Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / auth / auth-core / src / test / java / org / onap / aaf / auth / env / test / JU_AuthzTransFilter.java
index ccfb01a..e5b4209 100644 (file)
@@ -49,62 +49,62 @@ import org.onap.aaf.misc.env.Trans.Metric;
 
 public class JU_AuthzTransFilter {
 
-       @Mock private AuthzEnv envMock;
-       @Mock private Connector connectorMock;
-       @Mock private TrustChecker tcMock;
-       @Mock private AuthzTrans authzTransMock;
-       @Mock private Object additionalTafLurs;
-       
-       private PropAccess access;
+    @Mock private AuthzEnv envMock;
+    @Mock private Connector connectorMock;
+    @Mock private TrustChecker tcMock;
+    @Mock private AuthzTrans authzTransMock;
+    @Mock private Object additionalTafLurs;
+    
+    private PropAccess access;
 
-       @Before
-       public void setUp() throws CadiException{
-               MockitoAnnotations.initMocks(this);
+    @Before
+    public void setUp() throws CadiException{
+        MockitoAnnotations.initMocks(this);
 
-               access = new PropAccess(new PrintStream(new ByteArrayOutputStream()), new String[0]);
+        access = new PropAccess(new PrintStream(new ByteArrayOutputStream()), new String[0]);
 
-               when(envMock.access()).thenReturn(access);
-       }
-       
-       // TODO: These tests only work on the AT&T network. Fix them - Ian
-       @Test
-       public void testAuthenticated() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, CadiException {
-//             AuthzTransFilter filter = new AuthzTransFilter(envMock, connectorMock, tcMock);
-//             AuthzTransFilter aTF = new AuthzTransFilter(authzEnvMock, connectorMock, trustCheckerMock, (Object)null);
-//             Class<?> c = aTF.getClass();
-//             Class<?>[] cArg = new Class[2];
-//             cArg[0] = AuthzTrans.class;
-//             cArg[1] = Principal.class;              //Steps to test a protected method
-//             Method authenticatedMethod = c.getDeclaredMethod("authenticated", cArg);
-//             authenticatedMethod.setAccessible(true);
-//             authenticatedMethod.invoke(aTF, authzTransMock, null);
-       }
-       
-       @Test
-       public void testTallyHo() throws CadiException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
-//             Slot specialLogSlot = authzEnvMock.slot("SPECIAL_LOG_SLOT");
-//             LogTarget lt = mock(LogTarget.class);
-//             AuthzTransFilter aTF = new AuthzTransFilter(authzEnvMock, connectorMock, trustCheckerMock, additionalTafLurs);
-//             TaggedPrincipal tPrin = mock(TaggedPrincipal.class);
-//             Metric met = new Metric();
-//             met.total = 199.33F;
-//             met.entries = 15;
-//             met.buckets = new float[] {199.33F,99.33F};
-//             Class<?> c = aTF.getClass();
-//             Class<?>[] cArg = new Class[1];
-//             cArg[0] = AuthzTrans.class;             //Steps to test a protected method
-//             Method tallyHoMethod = c.getDeclaredMethod("tallyHo", cArg);
+        when(envMock.access()).thenReturn(access);
+    }
+    
+    // TODO: These tests only work on the AT&T network. Fix them - Ian
+    @Test
+    public void testAuthenticated() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, CadiException {
+//        AuthzTransFilter filter = new AuthzTransFilter(envMock, connectorMock, tcMock);
+//        AuthzTransFilter aTF = new AuthzTransFilter(authzEnvMock, connectorMock, trustCheckerMock, (Object)null);
+//        Class<?> c = aTF.getClass();
+//        Class<?>[] cArg = new Class[2];
+//        cArg[0] = AuthzTrans.class;
+//        cArg[1] = Principal.class;        //Steps to test a protected method
+//        Method authenticatedMethod = c.getDeclaredMethod("authenticated", cArg);
+//        authenticatedMethod.setAccessible(true);
+//        authenticatedMethod.invoke(aTF, authzTransMock, null);
+    }
+    
+    @Test
+    public void testTallyHo() throws CadiException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
+//        Slot specialLogSlot = authzEnvMock.slot("SPECIAL_LOG_SLOT");
+//        LogTarget lt = mock(LogTarget.class);
+//        AuthzTransFilter aTF = new AuthzTransFilter(authzEnvMock, connectorMock, trustCheckerMock, additionalTafLurs);
+//        TaggedPrincipal tPrin = mock(TaggedPrincipal.class);
+//        Metric met = new Metric();
+//        met.total = 199.33F;
+//        met.entries = 15;
+//        met.buckets = new float[] {199.33F,99.33F};
+//        Class<?> c = aTF.getClass();
+//        Class<?>[] cArg = new Class[1];
+//        cArg[0] = AuthzTrans.class;        //Steps to test a protected method
+//        Method tallyHoMethod = c.getDeclaredMethod("tallyHo", cArg);
 //
-//             when(authzTransMock.auditTrail(((LogTarget)any()), anyInt(), (StringBuilder)any(), anyInt(), anyInt())).thenReturn(met);
-//             tallyHoMethod.setAccessible(true);
+//        when(authzTransMock.auditTrail(((LogTarget)any()), anyInt(), (StringBuilder)any(), anyInt(), anyInt())).thenReturn(met);
+//        tallyHoMethod.setAccessible(true);
 //
-//             when(authzTransMock.get(specialLogSlot, false)).thenReturn(false);
-//             when(authzTransMock.warn()).thenReturn(lt);
-//             when(authzTransMock.info()).thenReturn(lt);
-//             tallyHoMethod.invoke(aTF, authzTransMock);
+//        when(authzTransMock.get(specialLogSlot, false)).thenReturn(false);
+//        when(authzTransMock.warn()).thenReturn(lt);
+//        when(authzTransMock.info()).thenReturn(lt);
+//        tallyHoMethod.invoke(aTF, authzTransMock);
 //
-//             when(authzTransMock.getUserPrincipal()).thenReturn(tPrin);
-//             tallyHoMethod.invoke(aTF, authzTransMock);
-       }
-       
+//        when(authzTransMock.getUserPrincipal()).thenReturn(tPrin);
+//        tallyHoMethod.invoke(aTF, authzTransMock);
+    }
+    
 }