[jboss-cvs] JBossAS SVN: r71658 - projects/security/security-xacml/trunk/jboss-xacml/src/tests/java/org/jboss/test/security/xacml/interop/rsaconf.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 2 19:40:18 EDT 2008


Author: mmoyses
Date: 2008-04-02 19:40:18 -0400 (Wed, 02 Apr 2008)
New Revision: 71658

Modified:
   projects/security/security-xacml/trunk/jboss-xacml/src/tests/java/org/jboss/test/security/xacml/interop/rsaconf/PhysicianUnitTestCase.java
Log:
formatting jboss-xacml

Modified: projects/security/security-xacml/trunk/jboss-xacml/src/tests/java/org/jboss/test/security/xacml/interop/rsaconf/PhysicianUnitTestCase.java
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/tests/java/org/jboss/test/security/xacml/interop/rsaconf/PhysicianUnitTestCase.java	2008-04-02 23:35:21 UTC (rev 71657)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/tests/java/org/jboss/test/security/xacml/interop/rsaconf/PhysicianUnitTestCase.java	2008-04-02 23:40:18 UTC (rev 71658)
@@ -23,13 +23,13 @@
 
 import java.io.InputStream;
 
+import junit.framework.TestCase;
+
 import org.jboss.security.xacml.core.JBossPDP;
 import org.jboss.security.xacml.interfaces.PolicyDecisionPoint;
 import org.jboss.security.xacml.interfaces.XACMLConstants;
 import org.jboss.test.security.xacml.factories.util.XACMLTestUtil;
 
-import junit.framework.TestCase;
-
 //$Id$
 
 /**
@@ -47,13 +47,12 @@
       <!-- Test case 1-01: Should be Perm: Dr A has all reqd perms          -->
       <!-- **************************************************************** -->
       **/
-      
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-01-01.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-01-01.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest01_02() throws Exception
    {
       /**
@@ -61,12 +60,11 @@
          <!-- Test case 1-02: Should be Deny: Dr A missing 2 reqd perms        -->
          <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-01-02.xml");    
-      assertEquals("DENY?", XACMLConstants.DECISION_DENY,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-01-02.xml");
+      assertEquals("DENY?", XACMLConstants.DECISION_DENY, decision);
    }
-   
+
    public void testRequest01_03() throws Exception
    {
       /**
@@ -74,12 +72,11 @@
          <!-- Test case 1-03: Should be Perm: Dr A has all reqd perms +2 extra -->
          <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-01-03.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-01-03.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest02_01() throws Exception
    {
       /**
@@ -87,12 +84,11 @@
         <!-- Test case 2-01: Should be Deny: provides role but needs perms    -->
         <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-02-01.xml");   
-      assertEquals("DENY?", XACMLConstants.DECISION_DENY,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-02-01.xml");
+      assertEquals("DENY?", XACMLConstants.DECISION_DENY, decision);
    }
-   
+
    public void testRequest02_02() throws Exception
    {
       /**
@@ -100,10 +96,9 @@
        <!-- Test case 2-02: Should be Deny: Dr A is on dissented list        -->
        <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-02-02.xml");  
-      assertEquals("DENY?", XACMLConstants.DECISION_DENY,decision);  
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-02-02.xml");
+      assertEquals("DENY?", XACMLConstants.DECISION_DENY, decision);
    }
 
    public void testRequest02_03() throws Exception
@@ -113,12 +108,11 @@
         <!-- Test case 2-03: Should be Perm: Dr A is not on dissented list    -->
         <!-- **************************************************************** --> 
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-02-03.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-02-03.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest03_01() throws Exception
    {
       /**
@@ -126,12 +120,11 @@
       <!-- Test case 3-01: Should be Deny: signed = Fals, Dr. A not author  -->
       <!-- **************************************************************** -->
       */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-03-01.xml");      
-      assertEquals("DENY?", XACMLConstants.DECISION_DENY,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-03-01.xml");
+      assertEquals("DENY?", XACMLConstants.DECISION_DENY, decision);
    }
-   
+
    public void testRequest03_02() throws Exception
    {
       /**
@@ -139,12 +132,11 @@
         <!-- Test case 3-02: Should be Permit: sign = True, Dr. A not author  -->
         <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-03-02.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-03-02.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest03_03() throws Exception
    {
       /**
@@ -153,25 +145,23 @@
       <!-- Test case 3-03: Should be Perm: signed = Fals, Dr. A is author   -->
       <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-03-03.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-03-03.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest05_01() throws Exception
    {
       /**
        * **************************************************************** -->
-  <!-- Test case 5-01: Should be Perm + Obl: Dr A is on dissented list  -->
-  <!-- **************************************************************** -->
+      <!-- Test case 5-01: Should be Perm + Obl: Dr A is on dissented list  -->
+      <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-05-01.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-05-01.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    public void testRequest05_02() throws Exception
    {
       /**
@@ -179,20 +169,18 @@
           <!-- Test case 5-02: Should be Perm: no obl; Dr A not on dis-list     -->
           <!-- **************************************************************** -->
        */
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-            "test/requests/interop/rsaconf08/XacmlRequest-05-02.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
-   } 
-  
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/XacmlRequest-05-02.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
+   }
+
    public void testPatientSearch() throws Exception
    {
-      System.setProperty("debug","true");
-      int decision = XACMLTestUtil.getDecision(getPDP(), 
-        "test/requests/interop/rsaconf08/patient_search.xml");    
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision); 
+      System.setProperty("debug", "true");
+      int decision = XACMLTestUtil.getDecision(getPDP(), "test/requests/interop/rsaconf08/patient_search.xml");
+      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT, decision);
    }
-   
+
    private PolicyDecisionPoint getPDP()
    {
       ClassLoader tcl = Thread.currentThread().getContextClassLoader();




More information about the jboss-cvs-commits mailing list