syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1327551 [14/15] - in /incubator/syncope/trunk: archetype/ archetype/src/main/resources/archetype-resources/core/ build-tools/ build-tools/src/main/java/org/apache/ build-tools/src/main/java/org/apache/syncope/ build-tools/src/main/java/org...
Date Wed, 18 Apr 2012 15:53:13 GMT
Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
 
 import static org.junit.Assert.*;
 
@@ -27,15 +27,15 @@ import org.apache.http.impl.client.Defau
 import org.junit.Test;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.syncope.client.http.PreemptiveAuthHttpRequestFactory;
-import org.syncope.client.mod.AttributeMod;
-import org.syncope.client.mod.RoleMod;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.to.RoleTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.client.validation.SyncopeClientCompositeErrorException;
-import org.syncope.client.validation.SyncopeClientException;
-import org.syncope.types.SyncopeClientExceptionType;
+import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
+import org.apache.syncope.client.mod.AttributeMod;
+import org.apache.syncope.client.mod.RoleMod;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.to.RoleTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.apache.syncope.client.validation.SyncopeClientException;
+import org.apache.syncope.types.SyncopeClientExceptionType;
 
 public class RoleTestITCase extends AbstractTest {
 

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java
(original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,25 +16,26 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
+
+import static org.junit.Assert.*;
 
-import org.syncope.client.to.MembershipTO;
-import org.syncope.client.util.AttributableOperations;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.types.EntityViolationType;
 import java.util.Arrays;
 import java.util.List;
+import org.apache.syncope.client.mod.UserMod;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.to.MembershipTO;
+import org.apache.syncope.client.to.SchemaTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.client.util.AttributableOperations;
+import org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.apache.syncope.client.validation.SyncopeClientException;
+import org.apache.syncope.types.EntityViolationType;
+import org.apache.syncope.types.SchemaType;
+import org.apache.syncope.types.SyncopeClientExceptionType;
 import org.junit.Test;
-import org.syncope.types.SyncopeClientExceptionType;
-import org.syncope.client.validation.SyncopeClientException;
-import org.springframework.web.client.HttpClientErrorException;
 import org.springframework.http.HttpStatus;
-import org.syncope.client.mod.UserMod;
-import org.syncope.client.to.SchemaTO;
-import org.syncope.client.validation.SyncopeClientCompositeErrorException;
-import org.syncope.types.SchemaType;
-import static org.junit.Assert.*;
+import org.springframework.web.client.HttpClientErrorException;
 
 public class SchemaTestITCase extends AbstractTest {
 
@@ -173,7 +174,7 @@ public class SchemaTestITCase extends Ab
         schemaTO = restTemplate.postForObject(BASE_URL + "schema/user/create", schemaTO,
SchemaTO.class);
         assertNotNull(schemaTO);
 
-        UserTO userTO = UserTestITCase.getSampleTO("issue258@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("issue258@syncope.apache.org");
         AttributeTO attrTO = new AttributeTO();
         attrTO.setSchema(schemaTO.getName());
         attrTO.addValue("1.2");
@@ -202,7 +203,7 @@ public class SchemaTestITCase extends Ab
         schemaTO = restTemplate.postForObject(BASE_URL + "schema/user/create", schemaTO,
SchemaTO.class);
         assertNotNull(schemaTO);
 
-        UserTO userTO = UserTestITCase.getSampleTO("issue259@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("issue259@syncope.apache.org");
         AttributeTO attrTO = new AttributeTO();
         attrTO.setSchema(schemaTO.getName());
         attrTO.addValue("1");
@@ -232,7 +233,7 @@ public class SchemaTestITCase extends Ab
         schemaTO = restTemplate.postForObject(BASE_URL + "schema/user/create", schemaTO,
SchemaTO.class);
         assertNotNull(schemaTO);
 
-        UserTO userTO = UserTestITCase.getSampleTO("issue260@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("issue260@syncope.apache.org");
         AttributeTO attrTO = new AttributeTO();
         attrTO.setSchema(schemaTO.getName());
         attrTO.addValue("1.2");

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
 
 import static org.junit.Assert.*;
 
@@ -26,16 +26,16 @@ import java.util.Set;
 import org.junit.Test;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.to.MembershipTO;
-import org.syncope.client.to.TaskExecTO;
-import org.syncope.client.to.PropagationTaskTO;
-import org.syncope.client.to.SchedTaskTO;
-import org.syncope.client.to.SyncTaskTO;
-import org.syncope.client.to.TaskTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.types.PropagationTaskExecStatus;
-import org.syncope.core.scheduling.TestSyncJobActions;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.to.MembershipTO;
+import org.apache.syncope.client.to.TaskExecTO;
+import org.apache.syncope.client.to.PropagationTaskTO;
+import org.apache.syncope.client.to.SchedTaskTO;
+import org.apache.syncope.client.to.SyncTaskTO;
+import org.apache.syncope.client.to.TaskTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.types.PropagationTaskExecStatus;
+import org.apache.syncope.core.scheduling.TestSyncJobActions;
 
 public class TaskTestITCase extends AbstractTest {
 
@@ -220,12 +220,12 @@ public class TaskTestITCase extends Abst
 
         AttributeTO userIdTO = new AttributeTO();
         userIdTO.setSchema("userId");
-        userIdTO.addValue("user5@syncope-idm.org");
+        userIdTO.addValue("user5@syncope.apache.org");
         userTO.addAttribute(userIdTO);
 
         AttributeTO emailTO = new AttributeTO();
         emailTO.setSchema("email");
-        emailTO.addValue("user5@syncope-idm.org");
+        emailTO.addValue("user5@syncope.apache.org");
         userTO.addAttribute(emailTO);
 
         // add a derived attribute (accountId for csvdir)
@@ -252,7 +252,7 @@ public class TaskTestITCase extends Abst
 
         AttributeTO attrTO = new AttributeTO();
         attrTO.setSchema("type");
-        attrTO.addValue("email == 'test8@syncope.org'? 'TYPE_8': 'TYPE_OTHER'");
+        attrTO.addValue("email == 'test8@syncope.apache.org'? 'TYPE_8': 'TYPE_OTHER'");
         template.addAttribute(attrTO);
 
         attrTO = new AttributeTO();
@@ -312,8 +312,8 @@ public class TaskTestITCase extends Abst
         assertNotNull(userTO);
         assertEquals("test9", userTO.getUsername());
         assertEquals("active", userTO.getStatus());
-        assertEquals("test9@syncope.org", userTO.getAttributeMap().get("email").getValues().get(0));
-        assertEquals("test9@syncope.org", userTO.getAttributeMap().get("userId").getValues().get(0));
+        assertEquals("test9@syncope.apache.org", userTO.getAttributeMap().get("email").getValues().get(0));
+        assertEquals("test9@syncope.apache.org", userTO.getAttributeMap().get("userId").getValues().get(0));
         assertTrue(Integer.valueOf(userTO.getAttributeMap().get("fullname").getValues().get(0))
<= 10);
 
         // check for user template
@@ -368,7 +368,7 @@ public class TaskTestITCase extends Abst
 
         attrTO = new AttributeTO();
         attrTO.setSchema("userId");
-        attrTO.addValue("'reconciled@syncope.org'");
+        attrTO.addValue("'reconciled@syncope.apache.org'");
         template.addAttribute(attrTO);
 
         attrTO = new AttributeTO();
@@ -423,7 +423,7 @@ public class TaskTestITCase extends Abst
             restTemplate.getForObject(BASE_URL + "user/readByUsername/{username}.json", UserTO.class,
"testuser1");
 
         assertNotNull(userTO);
-        assertEquals("reconciled@syncope.org", userTO.getAttributeMap().get("userId").getValues().get(0));
+        assertEquals("reconciled@syncope.apache.org", userTO.getAttributeMap().get("userId").getValues().get(0));
     }
 
     @Test

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserRequestTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserRequestTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserRequestTestITCase.java
(original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
 
 import static org.junit.Assert.*;
 
@@ -28,16 +28,16 @@ import org.junit.Test;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.client.HttpClientErrorException;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.syncope.client.http.PreemptiveAuthHttpRequestFactory;
-import org.syncope.client.mod.UserMod;
-import org.syncope.client.search.AttributeCond;
-import org.syncope.client.search.NodeCond;
-import org.syncope.client.to.ConfigurationTO;
-import org.syncope.client.to.UserRequestTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.client.validation.SyncopeClientCompositeErrorException;
-import org.syncope.client.validation.SyncopeClientException;
-import org.syncope.types.SyncopeClientExceptionType;
+import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
+import org.apache.syncope.client.mod.UserMod;
+import org.apache.syncope.client.search.AttributeCond;
+import org.apache.syncope.client.search.NodeCond;
+import org.apache.syncope.client.to.ConfigurationTO;
+import org.apache.syncope.client.to.UserRequestTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.apache.syncope.client.validation.SyncopeClientException;
+import org.apache.syncope.types.SyncopeClientExceptionType;
 
 public class UserRequestTestITCase extends AbstractTest {
 
@@ -70,7 +70,7 @@ public class UserRequestTestITCase exten
                 ConfigurationTO.class);
         assertNotNull(configurationTO);
 
-        UserTO userTO = UserTestITCase.getSampleTO("selfcreate@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("selfcreate@syncope.apache.org");
 
         // 2. get unauthorized when trying to request user create
         SyncopeClientException exception = null;
@@ -100,7 +100,7 @@ public class UserRequestTestITCase exten
         // 6. try to find user
         AttributeCond attrCond = new AttributeCond(AttributeCond.Type.EQ);
         attrCond.setSchema("userId");
-        attrCond.setExpression("selfcreate@syncope-idm.org");
+        attrCond.setExpression("selfcreate@syncope.apache.org");
 
         final List<UserTO> matchingUsers = Arrays.asList(restTemplate.postForObject(BASE_URL
+ "user/search", NodeCond.
                 getLeafCond(attrCond), UserTO[].class));
@@ -114,7 +114,7 @@ public class UserRequestTestITCase exten
     @Test
     public void update() {
         // 1. create an user (as admin)
-        UserTO userTO = UserTestITCase.getSampleTO("selfupdate@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("selfupdate@syncope.apache.org");
         String initialPassword = userTO.getPassword();
 
         userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
@@ -176,7 +176,7 @@ public class UserRequestTestITCase exten
     @Test
     public void delete() {
         // 1. create an user (as admin)
-        UserTO userTO = UserTestITCase.getSampleTO("selfdelete@syncope-idm.org");
+        UserTO userTO = UserTestITCase.getSampleTO("selfdelete@syncope.apache.org");
         String initialPassword = userTO.getPassword();
 
         userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/UserTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
 
 import static org.junit.Assert.*;
 
@@ -37,32 +37,32 @@ import org.springframework.dao.EmptyResu
 import org.springframework.http.HttpStatus;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.syncope.client.http.PreemptiveAuthHttpRequestFactory;
-import org.syncope.client.mod.AttributeMod;
-import org.syncope.client.mod.MembershipMod;
-import org.syncope.client.mod.UserMod;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.search.AttributeCond;
-import org.syncope.client.search.SyncopeUserCond;
-import org.syncope.client.to.MembershipTO;
-import org.syncope.client.search.NodeCond;
-import org.syncope.client.search.ResourceCond;
-import org.syncope.client.to.ConnObjectTO;
-import org.syncope.client.to.PasswordPolicyTO;
-import org.syncope.client.to.PolicyTO;
-import org.syncope.client.to.PropagationTO;
-import org.syncope.client.to.PropagationTaskTO;
-import org.syncope.client.to.ResourceTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.client.to.WorkflowFormPropertyTO;
-import org.syncope.client.to.WorkflowFormTO;
-import org.syncope.client.util.AttributableOperations;
-import org.syncope.client.validation.SyncopeClientCompositeErrorException;
-import org.syncope.client.validation.SyncopeClientException;
-import org.syncope.core.persistence.beans.user.SyncopeUser;
-import org.syncope.types.CipherAlgorithm;
-import org.syncope.types.PropagationTaskExecStatus;
-import org.syncope.types.SyncopeClientExceptionType;
+import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
+import org.apache.syncope.client.mod.AttributeMod;
+import org.apache.syncope.client.mod.MembershipMod;
+import org.apache.syncope.client.mod.UserMod;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.search.AttributeCond;
+import org.apache.syncope.client.search.SyncopeUserCond;
+import org.apache.syncope.client.to.MembershipTO;
+import org.apache.syncope.client.search.NodeCond;
+import org.apache.syncope.client.search.ResourceCond;
+import org.apache.syncope.client.to.ConnObjectTO;
+import org.apache.syncope.client.to.PasswordPolicyTO;
+import org.apache.syncope.client.to.PolicyTO;
+import org.apache.syncope.client.to.PropagationTO;
+import org.apache.syncope.client.to.PropagationTaskTO;
+import org.apache.syncope.client.to.ResourceTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.client.to.WorkflowFormPropertyTO;
+import org.apache.syncope.client.to.WorkflowFormTO;
+import org.apache.syncope.client.util.AttributableOperations;
+import org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.apache.syncope.client.validation.SyncopeClientException;
+import org.apache.syncope.core.persistence.beans.user.SyncopeUser;
+import org.apache.syncope.types.CipherAlgorithm;
+import org.apache.syncope.types.PropagationTaskExecStatus;
+import org.apache.syncope.types.SyncopeClientExceptionType;
 
 public class UserTestITCase extends AbstractTest {
 
@@ -206,7 +206,7 @@ public class UserTestITCase extends Abst
         restTemplate.getForObject(BASE_URL + "policy/delete/{id}", PasswordPolicyTO.class,
2L);
 
         UserTO userTO = new UserTO();
-        userTO.setUsername("issue172@syncope-idm.org");
+        userTO.setUsername("issue172@syncope.apache.org");
         userTO.setPassword("password");
 
         AttributeTO attributeTO = new AttributeTO();
@@ -221,7 +221,7 @@ public class UserTestITCase extends Abst
 
         attributeTO = new AttributeTO();
         attributeTO.setSchema("userId");
-        attributeTO.addValue("issue172@syncope-idm.org");
+        attributeTO.addValue("issue172@syncope.apache.org");
         userTO.addAttribute(attributeTO);
 
         attributeTO = new AttributeTO();
@@ -240,12 +240,12 @@ public class UserTestITCase extends Abst
     public void issue186() {
         // 1. create an user with strict mandatory attributes only
         UserTO userTO = new UserTO();
-        userTO.setUsername("issue186@syncope-idm.org");
+        userTO.setUsername("issue186@syncope.apache.org");
         userTO.setPassword("password");
 
         AttributeTO attributeTO = new AttributeTO();
         attributeTO.setSchema("userId");
-        attributeTO.addValue("issue186@syncope-idm.org");
+        attributeTO.addValue("issue186@syncope.apache.org");
         userTO.addAttribute(attributeTO);
 
         attributeTO = new AttributeTO();
@@ -311,7 +311,7 @@ public class UserTestITCase extends Abst
     @Test
     public void issue147() {
         // 1. create an user without role nor resources
-        UserTO userTO = getSampleTO("issue147@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue147@tirasa.net");
 
         userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
         assertNotNull(userTO);
@@ -373,7 +373,7 @@ public class UserTestITCase extends Abst
 
     @Test(expected = SyncopeClientCompositeErrorException.class)
     public void createWithInvalidPassword() {
-        UserTO userTO = getSampleTO("invalidpasswd@syncope-idm.org");
+        UserTO userTO = getSampleTO("invalidpasswd@syncope.apache.org");
         userTO.setPassword("pass");
 
         restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
@@ -381,7 +381,7 @@ public class UserTestITCase extends Abst
 
     @Test(expected = SyncopeClientCompositeErrorException.class)
     public void createWithInvalidUsername() {
-        UserTO userTO = getSampleTO("invalidusername@syncope-idm.org");
+        UserTO userTO = getSampleTO("invalidusername@syncope.apache.org");
         userTO.setUsername("us");
 
         MembershipTO membershipTO = new MembershipTO();
@@ -602,7 +602,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void createWithReject() {
-        UserTO userTO = getSampleTO("createWithReject@syncope-idm.org");
+        UserTO userTO = getSampleTO("createWithReject@syncope.apache.org");
 
         // User with role 9 are defined in workflow as subject to approval
         MembershipTO membershipTO = new MembershipTO();
@@ -666,7 +666,7 @@ public class UserTestITCase extends Abst
     public void createWithApproval() {
         JdbcTemplate jdbcTemplate = new JdbcTemplate(testDataSource);
 
-        UserTO userTO = getSampleTO("createWithApproval@syncope-idm.org");
+        UserTO userTO = getSampleTO("createWithApproval@syncope.apache.org");
         userTO.addResource("resource-testdb");
 
         // User with role 9 are defined in workflow as subject to approval
@@ -1260,7 +1260,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void suspendReactivate() {
-        UserTO userTO = getSampleTO("suspendReactivate@syncope-idm.org");
+        UserTO userTO = getSampleTO("suspendReactivate@syncope.apache.org");
 
         MembershipTO membershipTO = new MembershipTO();
         membershipTO.setRoleId(7L);
@@ -1284,7 +1284,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void suspendReactivateOnResource() {
-        UserTO userTO = getSampleTO("suspreactonresource@syncope-idm.org");
+        UserTO userTO = getSampleTO("suspreactonresource@syncope.apache.org");
 
         userTO.getMemberships().clear();
         userTO.getResources().clear();
@@ -1360,7 +1360,7 @@ public class UserTestITCase extends Abst
 
     @Test(expected = EmptyResultDataAccessException.class)
     public void issue213() {
-        UserTO userTO = getSampleTO("issue213@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue213@syncope.apache.org");
         userTO.addResource("resource-testdb");
 
         userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
@@ -1387,7 +1387,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void issue234() {
-        UserTO userTO = getSampleTO("issue234@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue234@syncope.apache.org");
         userTO.addResource("resource-ldap");
 
         userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
@@ -1402,13 +1402,13 @@ public class UserTestITCase extends Abst
 
         assertNotNull(userTO);
 
-        assertEquals("1issue234@syncope-idm.org", userTO.getUsername());
+        assertEquals("1issue234@syncope.apache.org", userTO.getUsername());
     }
 
     @Test
     public void issue270() {
         // 1. create a new user without virtual attributes
-        UserTO original = getSampleTO("issue270@syncope-idm.org");
+        UserTO original = getSampleTO("issue270@syncope.apache.org");
         // be sure to remove all virtual attributes
         original.setVirtualAttributes(Collections.EMPTY_LIST);
 
@@ -1445,7 +1445,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public final void issue280() {
-        UserTO userTO = getSampleTO("issue280@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue280@syncope.apache.org");
         userTO.getResources().clear();
         userTO.getMemberships().clear();
         userTO.getDerivedAttributes().clear();
@@ -1476,7 +1476,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void issue281() {
-        UserTO userTO = getSampleTO("issue281@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue281@syncope.apache.org");
         userTO.getResources().clear();
         userTO.getMemberships().clear();
         userTO.getDerivedAttributes().clear();
@@ -1500,7 +1500,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void issue288() {
-        UserTO userTO = getSampleTO("issue288@syncope-idm.org");
+        UserTO userTO = getSampleTO("issue288@syncope.apache.org");
 
         AttributeTO attributeTO = new AttributeTO();
         attributeTO.setSchema("aLong");
@@ -1517,7 +1517,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void roleAttrPropagation() {
-        UserTO userTO = getSampleTO("checkRoleAttrPropagation@syncope-idm.org");
+        UserTO userTO = getSampleTO("checkRoleAttrPropagation@syncope.apache.org");
         userTO.getResources().clear();
         userTO.getMemberships().clear();
         userTO.getDerivedAttributes().clear();
@@ -1550,7 +1550,7 @@ public class UserTestITCase extends Abst
 
     @Test
     public void membershipAttrPropagation() {
-        UserTO userTO = getSampleTO("checkMembAttrPropagation@syncope-idm.org");
+        UserTO userTO = getSampleTO("checkMembAttrPropagation@syncope.apache.org");
         userTO.getResources().clear();
         userTO.getMemberships().clear();
         userTO.getDerivedAttributes().clear();

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/VirtualSchemaTestITCase.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/VirtualSchemaTestITCase.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/VirtualSchemaTestITCase.java
(original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
Wed Apr 18 15:52:29 2012
@@ -16,13 +16,13 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.rest;
+package org.apache.syncope.core.rest;
 
-import org.syncope.client.validation.SyncopeClientCompositeErrorException;
-import org.syncope.types.SyncopeClientExceptionType;
+import org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.apache.syncope.types.SyncopeClientExceptionType;
 import java.util.Arrays;
 import java.util.List;
-import org.syncope.client.to.VirtualSchemaTO;
+import org.apache.syncope.client.to.VirtualSchemaTO;
 import org.junit.Test;
 import static org.junit.Assert.*;
 

Copied: incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/scheduling/TestSyncJobActions.java
(from r1327523, incubator/syncope/trunk/core/src/test/java/org/syncope/core/scheduling/TestSyncJobActions.java)
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/scheduling/TestSyncJobActions.java?p2=incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/scheduling/TestSyncJobActions.java&p1=incubator/syncope/trunk/core/src/test/java/org/syncope/core/scheduling/TestSyncJobActions.java&r1=1327523&r2=1327551&rev=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/scheduling/TestSyncJobActions.java
(original)
+++ incubator/syncope/trunk/core/src/test/java/org/apache/syncope/core/scheduling/TestSyncJobActions.java
Wed Apr 18 15:52:29 2012
@@ -16,15 +16,16 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.scheduling;
+package org.apache.syncope.core.scheduling;
 
+import org.apache.syncope.core.scheduling.DefaultSyncJobActions;
 import java.util.Collections;
 import org.identityconnectors.framework.common.objects.SyncDelta;
 import org.quartz.JobExecutionException;
-import org.syncope.client.mod.AttributeMod;
-import org.syncope.client.mod.UserMod;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.to.UserTO;
+import org.apache.syncope.client.mod.AttributeMod;
+import org.apache.syncope.client.mod.UserMod;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.to.UserTO;
 
 public class TestSyncJobActions extends DefaultSyncJobActions {
 

Modified: incubator/syncope/trunk/core/src/test/notifications/java/org/apache/syncope/core/notification/NotificationTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/notifications/java/org/apache/syncope/core/notification/NotificationTest.java?rev=1327551&r1=1327534&r2=1327551&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/notifications/java/org/apache/syncope/core/notification/NotificationTest.java
(original)
+++ incubator/syncope/trunk/core/src/test/notifications/java/org/apache/syncope/core/notification/NotificationTest.java
Wed Apr 18 15:52:29 2012
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.syncope.core.notification;
+package org.apache.syncope.core.notification;
 
 import static org.junit.Assert.*;
 
@@ -36,6 +36,23 @@ import javax.mail.Message;
 import javax.mail.Session;
 import javax.mail.Store;
 import org.apache.commons.lang.StringUtils;
+import org.apache.syncope.client.search.MembershipCond;
+import org.apache.syncope.client.search.NodeCond;
+import org.apache.syncope.client.to.AttributeTO;
+import org.apache.syncope.client.to.MembershipTO;
+import org.apache.syncope.client.to.UserTO;
+import org.apache.syncope.core.persistence.beans.Entitlement;
+import org.apache.syncope.core.persistence.beans.Notification;
+import org.apache.syncope.core.persistence.beans.NotificationTask;
+import org.apache.syncope.core.persistence.beans.SyncopeConf;
+import org.apache.syncope.core.persistence.dao.ConfDAO;
+import org.apache.syncope.core.persistence.dao.EntitlementDAO;
+import org.apache.syncope.core.persistence.dao.NotificationDAO;
+import org.apache.syncope.core.persistence.dao.TaskDAO;
+import org.apache.syncope.core.rest.controller.TaskController;
+import org.apache.syncope.core.rest.controller.UserController;
+import org.apache.syncope.core.scheduling.NotificationJob;
+import org.apache.syncope.types.IntMappingType;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -55,23 +72,6 @@ import org.springframework.security.core
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.transaction.annotation.Transactional;
-import org.syncope.client.search.MembershipCond;
-import org.syncope.client.search.NodeCond;
-import org.syncope.client.to.AttributeTO;
-import org.syncope.client.to.MembershipTO;
-import org.syncope.client.to.UserTO;
-import org.syncope.core.persistence.beans.Entitlement;
-import org.syncope.core.persistence.beans.Notification;
-import org.syncope.core.persistence.beans.NotificationTask;
-import org.syncope.core.persistence.beans.SyncopeConf;
-import org.syncope.core.persistence.dao.ConfDAO;
-import org.syncope.core.persistence.dao.EntitlementDAO;
-import org.syncope.core.persistence.dao.NotificationDAO;
-import org.syncope.core.persistence.dao.TaskDAO;
-import org.syncope.core.rest.controller.TaskController;
-import org.syncope.core.rest.controller.UserController;
-import org.syncope.core.scheduling.NotificationJob;
-import org.syncope.types.IntMappingType;
 
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = {



Mime
View raw message