Browse Source

Removed MockPrincipal inner class as MockPrincipal is now a full class.

Ben Alex 21 years ago
parent
commit
922461d19a

+ 1 - 9
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");
-        }
-    }
 }