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 2016/08/16 10:39:26 UTC
syncope git commit: Forgot to adjust console test according to latest
commit
Repository: syncope
Updated Branches:
refs/heads/master f9fe0d3b3 -> 9a0916ef8
Forgot to adjust console test according to latest commit
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/9a0916ef
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/9a0916ef
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/9a0916ef
Branch: refs/heads/master
Commit: 9a0916ef8fcf155b2be36fc7f24c0d2d4d787fab
Parents: f9fe0d3
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Tue Aug 16 12:39:12 2016 +0200
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Tue Aug 16 12:39:12 2016 +0200
----------------------------------------------------------------------
.../fit/console/NotificationsITCase.java | 25 +++++++++++---------
1 file changed, 14 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/9a0916ef/fit/core-reference/src/test/java/org/apache/syncope/fit/console/NotificationsITCase.java
----------------------------------------------------------------------
diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/NotificationsITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/NotificationsITCase.java
index adf4238..487a0c6 100644
--- a/fit/core-reference/src/test/java/org/apache/syncope/fit/console/NotificationsITCase.java
+++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/console/NotificationsITCase.java
@@ -47,7 +47,6 @@ public class NotificationsITCase extends AbstractConsoleITCase {
FormTester formTester = TESTER.newFormTester(
"body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form");
- formTester.setValue("content:form:view:recipientAttrName:textField", "email");
formTester.select("content:form:view:template:dropDownChoiceField", 2);
formTester.select("content:form:view:traceLevel:dropDownChoiceField", 0);
formTester.setValue("content:form:view:sender:textField", sender);
@@ -57,11 +56,25 @@ public class NotificationsITCase extends AbstractConsoleITCase {
formTester.submit("content:form:buttons:next");
TESTER.assertNoErrorMessage();
+ // -------------------------------
+ // recipients
+ // -------------------------------
formTester = TESTER.newFormTester("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form");
+ TESTER.executeAjaxEvent("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form:content:form:"
+ + "view:staticRecipients:multiValueContainer:innerForm:content:panelPlus:add", Constants.ON_CLICK);
+ formTester.setValue("content:form:view:staticRecipients:multiValueContainer:innerForm:content:view:0:panel:"
+ + "textField", "recipient@syncope.org");
+ formTester.setValue("content:form:view:selfAsRecipient:checkboxField", true);
+ formTester.setValue("content:form:view:recipientAttrName:textField", "email");
+
+ TESTER.cleanupFeedbackMessages();
+ formTester.submit("content:form:buttons:next");
+ TESTER.assertNoErrorMessage();
// -------------------------------
// generate event to populate eventsPanel
// -------------------------------
+ formTester = TESTER.newFormTester("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form");
formTester.setValue("content:form:view:eventSelection:categoryContainer:category:dropDownChoiceField", "0");
TESTER.executeAjaxEvent("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form:"
+ "content:form:view:eventSelection:categoryContainer:category:dropDownChoiceField",
@@ -86,16 +99,6 @@ public class NotificationsITCase extends AbstractConsoleITCase {
formTester = TESTER.newFormTester("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form");
TESTER.cleanupFeedbackMessages();
- formTester.submit("content:form:buttons:next");
- TESTER.assertNoErrorMessage();
- TESTER.assertNoInfoMessage();
-
- formTester = TESTER.newFormTester("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form");
- TESTER.executeAjaxEvent("body:content:tabbedPanel:panel:outerObjectsRepeater:0:outer:form:content:form:"
- + "view:staticRecipients:multiValueContainer:innerForm:content:panelPlus:add", Constants.ON_CLICK);
- formTester.setValue("content:form:view:staticRecipients:multiValueContainer:innerForm:content:view:0:panel:"
- + "textField", "recipient@syncope.org");
- formTester.setValue("content:form:view:selfAsRecipient:checkboxField", true);
TESTER.cleanupFeedbackMessages();
formTester.submit("content:form:buttons:finish");