syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacom...@apache.org
Subject [2/2] syncope git commit: [SYNCOPE-654] Merge from 1_2_X
Date Wed, 15 Apr 2015 08:32:53 GMT
[SYNCOPE-654] Merge from 1_2_X


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

Branch: refs/heads/master
Commit: 8187e7fbece3e5ecc4e7dbdb6ceace42785c1cbe
Parents: d2cc18c
Author: giacomolm <giacomolm@hotmail.it>
Authored: Wed Apr 15 10:32:26 2015 +0200
Committer: giacomolm <giacomolm@hotmail.it>
Committed: Wed Apr 15 10:32:26 2015 +0200

----------------------------------------------------------------------
 .../fit/core/reference/ExceptionMapperITCase.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/8187e7fb/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/ExceptionMapperITCase.java
----------------------------------------------------------------------
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/ExceptionMapperITCase.java
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/ExceptionMapperITCase.java
index 25b0667..ae531e7 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/ExceptionMapperITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/ExceptionMapperITCase.java
@@ -22,6 +22,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.util.Properties;
 import org.apache.commons.io.IOUtils;
+import org.apache.syncope.common.lib.SyncopeClientCompositeException;
 import org.apache.syncope.common.lib.to.PlainSchemaTO;
 import org.apache.syncope.common.lib.to.RoleTO;
 import org.apache.syncope.common.lib.to.UserTO;
@@ -114,4 +115,21 @@ public class ExceptionMapperITCase extends AbstractITCase {
         }
     }
 
+    @Test
+    public void headersMultiValue() {
+        UserTO userTO = new UserTO();
+        String userId = getUUIDString() + "issue654@syncope.apache.org";
+        userTO.setUsername(userId);
+        userTO.setPassword("password");
+
+        userTO.getPlainAttrs().add(attrTO("userId", "issue654"));
+        userTO.getPlainAttrs().add(attrTO("fullname", userId));
+        userTO.getPlainAttrs().add(attrTO("surname", userId));
+
+        try {
+            createUser(userTO);
+        } catch (SyncopeClientCompositeException e) {
+            Assert.assertEquals(2, e.getExceptions().size());
+        }
+    }
 }


Mime
View raw message