diff --git a/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java b/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java index 0876beff96..05d00b2cd5 100644 --- a/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java +++ b/adapters/catalina/src/test/java/org/acegisecurity/adapters/catalina/CatalinaAcegiUserRealmTests.java @@ -19,6 +19,7 @@ import junit.framework.TestCase; import net.sf.acegisecurity.GrantedAuthority; import net.sf.acegisecurity.GrantedAuthorityImpl; +import net.sf.acegisecurity.adapters.MockPrincipal; import net.sf.acegisecurity.adapters.PrincipalAcegiUserToken; import org.apache.catalina.LifecycleException; @@ -280,13 +281,4 @@ public class CatalinaAcegiUserRealmTests extends TestCase { return adapter; } - - //~ Inner Classes ========================================================== - - private class MockPrincipal implements Principal { - public String getName() { - throw new UnsupportedOperationException( - "mock method not implemented"); - } - } }