[jboss-cvs] JBossAS SVN: r108495 - in projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml: src/test/java/org/jboss/test/security/test/xacml/attriblocators and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Oct 8 13:04:35 EDT 2010


Author: anil.saldhana at jboss.com
Date: 2010-10-08 13:04:34 -0400 (Fri, 08 Oct 2010)
New Revision: 108495

Removed:
   projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/test/xacml/attriblocators/LDAPAttributeLocatorUnitTestCase.java
   projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/xacml/ldap/
   projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/xacml/locators/LDAPPolicyLocatorUnitTestCase.java
Modified:
   projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/pom.xml
Log:
make deps brew friendly

Modified: projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/pom.xml
===================================================================
--- projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/pom.xml	2010-10-08 16:42:03 UTC (rev 108494)
+++ projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/pom.xml	2010-10-08 17:04:34 UTC (rev 108495)
@@ -46,17 +46,5 @@
       <version>2.5</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>sun-opends</groupId>
-      <artifactId>OpenDS</artifactId>
-      <version>1.0.0</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>sleepycat</groupId>
-      <artifactId>je</artifactId>
-      <version>3.2.43</version>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
 </project>

Deleted: projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/test/xacml/attriblocators/LDAPAttributeLocatorUnitTestCase.java
===================================================================
--- projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/test/xacml/attriblocators/LDAPAttributeLocatorUnitTestCase.java	2010-10-08 16:42:03 UTC (rev 108494)
+++ projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/test/xacml/attriblocators/LDAPAttributeLocatorUnitTestCase.java	2010-10-08 17:04:34 UTC (rev 108495)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors. 
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.security.test.xacml.attriblocators;
-
-import java.io.File;
-import java.io.InputStream;
-
-import org.jboss.security.xacml.core.JBossPDP;
-import org.jboss.security.xacml.interfaces.PolicyDecisionPoint;
-import org.jboss.security.xacml.interfaces.ResponseContext;
-import org.jboss.security.xacml.interfaces.XACMLConstants;
-import org.jboss.test.security.xacml.factories.util.XACMLTestUtil;
-import org.jboss.test.security.xacml.ldap.OpenDSUnitTestAdapter;
-import org.junit.Test;
-
-/**
- * Unit test the {@code LDAPAttributeLocator}
- * @author Anil.Saldhana at redhat.com
- * @since Aug 25, 2010
- */
-public class LDAPAttributeLocatorUnitTestCase extends OpenDSUnitTestAdapter
-{
-   public LDAPAttributeLocatorUnitTestCase(String name)
-   {
-      super(name); 
-   }
-
-   @Override
-   protected void setUp() throws Exception
-   {
-      super.setUp();
-      // Let us add the ldap.ldif
-      String fileName = targetDir + "test" + fs + "ldif" + fs + "ldap-attrib.ldif";
-      boolean op = util.addLDIF(serverHost, port, adminDN, adminPW, new File(fileName).toURI().toURL());
-      assertTrue(op);   
-   }
-   
-   @Test
-   public void testPDPUsingLDAPResourceAttributeLocator() throws Exception
-   {   
-      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
-
-      InputStream is = tcl.getResourceAsStream("locators/attrib/ldap_resource_attrib_locator-config.xml");
-      assertNotNull("Inputstream is not null?", is);
-      PolicyDecisionPoint pdp = new JBossPDP(is);
-      ResponseContext response = XACMLTestUtil.getResponse(pdp,"locators/attrib/attribLocatorResourceAttribute-request.xml"); 
-      int decision = response.getDecision();
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision);
-   }
-   
-   @Test
-   public void testPDPUsingLDAPSubjectAttributeLocator() throws Exception
-   { 
-      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
-
-      InputStream is = tcl.getResourceAsStream("locators/attrib/ldap_subject_attrib_locator-config.xml");
-      assertNotNull("Inputstream is not null?", is);
-      PolicyDecisionPoint pdp = new JBossPDP(is);
-      ResponseContext response = XACMLTestUtil.getResponse(pdp,"locators/attrib/attribLocatorSubjectAttribute-request.xml"); 
-      int decision = response.getDecision();
-      assertEquals("PERMIT?", XACMLConstants.DECISION_PERMIT,decision);
-   }
-}
\ No newline at end of file

Deleted: projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/xacml/locators/LDAPPolicyLocatorUnitTestCase.java
===================================================================
--- projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/xacml/locators/LDAPPolicyLocatorUnitTestCase.java	2010-10-08 16:42:03 UTC (rev 108494)
+++ projects/security/security-xacml/branches/prod_branch/2.x/jboss-xacml/src/test/java/org/jboss/test/security/xacml/locators/LDAPPolicyLocatorUnitTestCase.java	2010-10-08 17:04:34 UTC (rev 108495)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors. 
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.security.xacml.locators;
-
-import org.jboss.test.security.xacml.ldap.LDAPUnitTestCase;
-
-/**
- * Test for the LDAP Policy Locator
- * @author Anil.Saldhana at redhat.com
- * @since Aug 25, 2010
- */
-public class LDAPPolicyLocatorUnitTestCase extends LDAPUnitTestCase
-{
-   public LDAPPolicyLocatorUnitTestCase(String name)
-   {
-      super(name); 
-   }
-}
\ No newline at end of file



More information about the jboss-cvs-commits mailing list