[java-idp-plugin-totp] branch master updated: Fix Test broken by upstream change

Rod Widdowson rdw at steadingsoftware.com
Tue Aug 4 14:10:07 UTC 2020


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

rdw pushed a commit to branch master
in repository java-idp-plugin-totp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-totp.git;a=commit;h=764112f6fc170a3e4877cca2515b049fef8664af

The following commit(s) were added to refs/heads/master by this push:
       new  764112f   Fix Test broken by upstream change
764112f is described below

commit 764112f6fc170a3e4877cca2515b049fef8664af
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Aug 4 15:10:03 2020 +0100

    Fix Test broken by upstream change
---
 .../test/java/net/shibboleth/idp/plugin/totp/PluginTest.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/totp-impl/src/test/java/net/shibboleth/idp/plugin/totp/PluginTest.java b/totp-impl/src/test/java/net/shibboleth/idp/plugin/totp/PluginTest.java
index cd04f2c..5331a4e 100644
--- a/totp-impl/src/test/java/net/shibboleth/idp/plugin/totp/PluginTest.java
+++ b/totp-impl/src/test/java/net/shibboleth/idp/plugin/totp/PluginTest.java
@@ -56,10 +56,10 @@ public class PluginTest {
 		
 		final PluginState state = new PluginState(totp); 
 		state.initialize();
-        assertTrue(state.getAvailableVersions().contains(
-                new PluginVersion(totp.getMajorVersion(), totp.getMinorVersion(), totp.getPatchVersion())));
-        assertEquals(state.getSupportLevel(), SupportLevel.Current);
-        assertTrue(state.isSupportedWithIdPVersion("4.1.0"));
-        assertFalse(state.isSupportedWithIdPVersion("5.0.0"));
+        final PluginVersion version = new PluginVersion(totp.getMajorVersion(),totp.getMinorVersion(), totp.getPatchVersion()); 
+        assertTrue(state.getAvailableVersions().containsKey(version));
+        assertEquals(state.getCurrentInfo().getSupportLevel(), SupportLevel.Current);
+        assertTrue(state.isSupportedWithIdPVersion(version, new PluginVersion("4.1.0")));
+        assertFalse(state.isSupportedWithIdPVersion(version, new PluginVersion("5.0.0")));
 	}
 }

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


More information about the commits mailing list