syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/4] syncope git commit: [SYNCOPE-1013] Fixing test exec
Date Sun, 12 Feb 2017 13:25:17 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 9448637bc -> 7419f26a8
  refs/heads/master f4ffc3b56 -> 560000847


[SYNCOPE-1013] Fixing test exec


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

Branch: refs/heads/2_0_X
Commit: 72d5bda7981b92a699b92531dde0dc7d789b3d0a
Parents: 9448637
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Sun Feb 12 14:15:17 2017 +0100
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Sun Feb 12 14:15:17 2017 +0100

----------------------------------------------------------------------
 .../syncope/core/provisioning/java/MailTemplateTest.java       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/72d5bda7/core/provisioning-java/src/test/java/org/apache/syncope/core/provisioning/java/MailTemplateTest.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/test/java/org/apache/syncope/core/provisioning/java/MailTemplateTest.java
b/core/provisioning-java/src/test/java/org/apache/syncope/core/provisioning/java/MailTemplateTest.java
index 4784708..37c37d1 100644
--- a/core/provisioning-java/src/test/java/org/apache/syncope/core/provisioning/java/MailTemplateTest.java
+++ b/core/provisioning-java/src/test/java/org/apache/syncope/core/provisioning/java/MailTemplateTest.java
@@ -85,9 +85,11 @@ public class MailTemplateTest extends AbstractTest {
         assertNotNull(htmlBody);
         assertTrue(htmlBody.contains("a password reset was request for " + username + "."));
         assertFalse(htmlBody.contains(
-                "http://localhost:9080/syncope-enduser/app/#/confirmpasswordreset?token="
+ token));
+                "http://localhost:9080/syncope-enduser/app/#!/confirmpasswordreset?token="
+                + token));
         assertTrue(htmlBody.contains(
-                "http://localhost:9080/syncope-enduser/app/#/confirmpasswordreset?token="
+ token.replaceAll(" ", "%20")));
+                "http://localhost:9080/syncope-enduser/app/#!/confirmpasswordreset?token="
+                + token.replaceAll(" ", "%20")));
     }
 
     @Test


Mime
View raw message