You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/05/13 15:40:25 UTC

[2/4] syncope git commit: [SYNCOPE-667] Changing test according to Guido's comments

[SYNCOPE-667] Changing test according to Guido's comments


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/0e186472
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/0e186472
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/0e186472

Branch: refs/heads/master
Commit: 0e1864724baf07f1d21eeb0addef1365cf3adb43
Parents: 36bec38
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Wed May 13 12:09:00 2015 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Wed May 13 12:09:00 2015 +0200

----------------------------------------------------------------------
 core/pom.xml                                                 | 2 +-
 .../apache/syncope/core/rest/AuthenticationTestITCase.java   | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/0e186472/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index aa136c5..b613270 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -1034,7 +1034,7 @@ under the License.
       </dependencies>
       
       <build>
-        <defaultGoal>clean verify cargo:run</defaultGoal>
+        <defaultGoal>clean verify</defaultGoal>
 
         <plugins>
           <plugin>

http://git-wip-us.apache.org/repos/asf/syncope/blob/0e186472/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java b/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
index f715c69..60d0dd9 100644
--- a/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
+++ b/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
@@ -230,13 +230,7 @@ public class AuthenticationTestITCase extends AbstractTest {
         matchedUsers = userService3.search(
                 SyncopeClient.getUserSearchConditionBuilder().isNotNull("loginDate").query());
         assertNotNull(matchedUsers);
-
-        userIds = new HashSet<Long>(matchedUsers.getResult().size());
-
-        for (UserTO user : matchedUsers.getResult()) {
-            userIds.add(user.getId());
-        }
-        assertFalse(userIds.contains(1L));
+        assertTrue(matchedUsers.getResult().isEmpty());
     }
 
     @Test