[java-identity-provider] branch main updated: Align test to directory tree creation fix.

Scott Cantor cantor.2 at osu.edu
Wed Sep 16 21:55:18 UTC 2020


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=162d0d92ceaa141d50d5a34b65ede24097136d06

The following commit(s) were added to refs/heads/main by this push:
       new  162d0d92c Align test to directory tree creation fix.
162d0d92c is described below

commit 162d0d92ceaa141d50d5a34b65ede24097136d06
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 16 17:55:01 2020 -0400

    Align test to directory tree creation fix.
---
 .../src/test/java/net/shibboleth/idp/module/IdPModuleTest.java   | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/idp-admin-api/src/test/java/net/shibboleth/idp/module/IdPModuleTest.java b/idp-admin-api/src/test/java/net/shibboleth/idp/module/IdPModuleTest.java
index ea08a91f2..b442422b1 100644
--- a/idp-admin-api/src/test/java/net/shibboleth/idp/module/IdPModuleTest.java
+++ b/idp-admin-api/src/test/java/net/shibboleth/idp/module/IdPModuleTest.java
@@ -157,9 +157,14 @@ public class IdPModuleTest {
         Assert.assertEquals(resource.getDestination(), Path.of("views/test.vm"));
     }
 
-    @Test(expectedExceptions=ModuleException.class)
-    public void testEnableNoTree() throws ModuleException {
+    @Test
+    public void testEnableNoTree() throws ModuleException, IOException {
         testModule.enable(context);
+        String xml = Files.readString(testHome.resolve("conf/test.xml"));
+        Assert.assertEquals(xml, XML_DATA);
+        
+        String vel = Files.readString(testHome.resolve("views/test.vm"));
+        Assert.assertEquals(vel, VEL_DATA);
     }
 
     @Test

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list