[jboss-cvs] Picketlink SVN: r1129 - in integration-tests/trunk: picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2 and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 26 13:27:47 EDT 2011


Author: anil.saldhana at jboss.com
Date: 2011-07-26 13:27:46 -0400 (Tue, 26 Jul 2011)
New Revision: 1129

Added:
   integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2ResponseParsingUnitTestCase.java
Modified:
   integration-tests/trunk/ant-scripts/ant-build.xml
Log:
PLFED-214: test the transformerutil changes

Modified: integration-tests/trunk/ant-scripts/ant-build.xml
===================================================================
--- integration-tests/trunk/ant-scripts/ant-build.xml	2011-07-26 16:37:51 UTC (rev 1128)
+++ integration-tests/trunk/ant-scripts/ant-build.xml	2011-07-26 17:27:46 UTC (rev 1129)
@@ -80,18 +80,8 @@
         <param name="jbossas" value="${basedir}/target/jboss-5.1.0.GA"/>
     </antcall>
     <copy file="${basedir}/../common-dist/files/jboss-log4j.xml" todir="${JBAS5_DEPLOY}/../conf"/>
+    <copy file="${basedir}/../picketlink-int-webapps/claims/target/claims.war" todir="${JBAS5_DEPLOY}/picketlink/"/>
     
-    <!--
-    <mkdir dir="${JBAS5_DEPLOY}/picketlink" />
-    <copy file="${localRepository}/org/picketlink/picketlink-bindings/${version}/picketlink-bindings-${version}.jar" todir="${JBAS5_DEPLOY}/picketlink"/>
-    <copy file="${localRepository}/org/picketlink/picketlink-bindings-jboss/${version}/picketlink-bindings-jboss-${version}.jar" todir="${JBAS5_DEPLOY}/picketlink"/>
-    <copy file="${localRepository}/org/picketlink/picketlink-fed/${version}/picketlink-fed-${version}.jar" todir="${JBAS5_DEPLOY}/picketlink"/>
-    <unzip src="${localRepository}/org/picketlink/picketlink-fed-webapps-assembly/${version}/picketlink-fed-webapps-assembly-${version}.zip"
-           dest="${JBAS5_DEPLOY}"/>
-    <copy file="${localRepository}/org/openid4java/openid4java-nodeps/0.9.5/openid4java-nodeps-0.9.5.jar" todir="${JBAS5_DEPLOY}/picketlink"/>
-
-    <chmod file="${basedir}/target/jboss-5.1.0.GA/bin/run.sh" perm="700"/>
-    -->
   </target>
 
   <target name="copy-picketlink-jbas6">
@@ -99,6 +89,7 @@
         <param name="deploy" value="${JBAS6_DEPLOY}"/>
         <param name="jbossas" value="${basedir}/target/jboss-6.0.0.Final"/>
     </antcall>
+    <copy file="${basedir}/../picketlink-int-webapps/claims/target/claims.war" todir="${JBAS6_DEPLOY}/picketlink/"/>
   </target>
     
   <target name="copy-sts-props-jbas5">

Added: integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2ResponseParsingUnitTestCase.java
===================================================================
--- integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2ResponseParsingUnitTestCase.java	                        (rev 0)
+++ integration-tests/trunk/picketlink-saml-tests/src/test/java/org/picketlink/test/integration/saml2/SAML2ResponseParsingUnitTestCase.java	2011-07-26 17:27:46 UTC (rev 1129)
@@ -0,0 +1,54 @@
+/*
+ * 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.picketlink.test.integration.saml2;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+import com.meterware.httpunit.GetMethodWebRequest;
+import com.meterware.httpunit.WebConversation;
+import com.meterware.httpunit.WebRequest;
+import com.meterware.httpunit.WebResponse;
+
+/**
+ * Test for parsing the SAML2 Response
+ * @author Anil.Saldhana at redhat.com
+ * @since Jul 26, 2011
+ */
+public class SAML2ResponseParsingUnitTestCase
+{
+   String CLAIMS_URL = "http://localhost:8080/claims/claimsprocess.jsp";
+   
+   /**
+    * PLFED-214: Uses the claims.war in the picketlink-int-webapps setup
+    */
+   @Test
+   public void testADFSClaims() throws Exception
+   {
+      WebRequest serviceRequest1 = new GetMethodWebRequest( CLAIMS_URL );
+      WebConversation webConversation = new WebConversation();
+      
+      WebResponse webResponse = webConversation.getResponse( serviceRequest1 ); 
+      assertEquals( 200, webResponse.getResponseCode());
+   }
+}
\ No newline at end of file



More information about the jboss-cvs-commits mailing list