[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java
noreply at shibboleth.net
noreply at shibboleth.net
Wed Mar 9 22:14:28 EST 2016
Author: scantor
Date: Wed Mar 9 22:14:27 2016
New Revision: 8140
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8140&view=rev
Log:
Fix warnings.
Modified:
trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java
Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java?rev=8140&r1=8139&r2=8140&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeTest.java Wed Mar 9 22:14:27 2016
@@ -120,6 +120,7 @@
/**
* Test behavior related to {@link Scope#getMatchPattern()}.
*/
+ @SuppressWarnings("deprecation")
@Test
public void testMatchPattern() {
Scope scope = (Scope) buildXMLObject(Scope.DEFAULT_ELEMENT_NAME);
@@ -127,7 +128,7 @@
try {
scope.setRegexp(false);
scope.setValue("example.org");
- Pattern pattern = scope.getMatchPattern();
+ scope.getMatchPattern();
Assert.fail("Non-regex should have failed with IllegalStateException");
} catch (IllegalStateException e) {
//expected
More information about the commits
mailing list