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/04/21 09:49:26 UTC
[11/40] syncope git commit: [SYNCOPE-654] Merge from 1_2_X
[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/SYNCOPE-119
Commit: 8187e7fbece3e5ecc4e7dbdb6ceace42785c1cbe
Parents: d2cc18c
Author: giacomolm <gi...@hotmail.it>
Authored: Wed Apr 15 10:32:26 2015 +0200
Committer: giacomolm <gi...@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());
+ }
+ }
}