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 2012/04/03 17:57:20 UTC

svn commit: r1309003 - /incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java

Author: ilgrosso
Date: Tue Apr  3 15:57:20 2012
New Revision: 1309003

URL: http://svn.apache.org/viewvc?rev=1309003&view=rev
Log:
[SYNCOPE-41] Updating NotificationTest to reflect the changed interface

Modified:
    incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java

Modified: incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java?rev=1309003&r1=1309002&r2=1309003&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java (original)
+++ incubator/syncope/trunk/core/src/test/notifications/java/org/syncope/core/notification/NotificationTest.java Tue Apr  3 15:57:20 2012
@@ -71,6 +71,7 @@ import org.syncope.core.persistence.dao.
 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 = {
@@ -257,6 +258,9 @@ public class NotificationTest {
         notification.setRecipients(NodeCond.getLeafCond(membCond));
         notification.setSelfAsRecipient(true);
 
+        notification.setRecipientAttrName("email");
+        notification.setRecipientAttrType(IntMappingType.UserSchema);
+
         Random random = new Random(System.currentTimeMillis());
         String sender = "syncopetest-" + random.nextLong() + "@syncope-idm.org";
         notification.setSender(sender);