|
@@ -17,7 +17,7 @@ package org.acegisecurity.providers.cas.cache;
|
|
|
|
|
|
import junit.framework.TestCase;
|
|
import junit.framework.TestCase;
|
|
|
|
|
|
-import net.sf.ehcache.Cache;
|
|
|
|
|
|
+import net.sf.ehcache.Ehcache;
|
|
|
|
|
|
import org.acegisecurity.GrantedAuthority;
|
|
import org.acegisecurity.GrantedAuthority;
|
|
import org.acegisecurity.GrantedAuthorityImpl;
|
|
import org.acegisecurity.GrantedAuthorityImpl;
|
|
@@ -43,7 +43,6 @@ public class EhCacheBasedTicketCacheTests extends TestCase {
|
|
//~ Constructors ===================================================================================================
|
|
//~ Constructors ===================================================================================================
|
|
|
|
|
|
public EhCacheBasedTicketCacheTests() {
|
|
public EhCacheBasedTicketCacheTests() {
|
|
- super();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public EhCacheBasedTicketCacheTests(String arg0) {
|
|
public EhCacheBasedTicketCacheTests(String arg0) {
|
|
@@ -52,10 +51,10 @@ public class EhCacheBasedTicketCacheTests extends TestCase {
|
|
|
|
|
|
//~ Methods ========================================================================================================
|
|
//~ Methods ========================================================================================================
|
|
|
|
|
|
- private Cache getCache() {
|
|
|
|
|
|
+ private Ehcache getCache() {
|
|
ApplicationContext ctx = MockApplicationContext.getContext();
|
|
ApplicationContext ctx = MockApplicationContext.getContext();
|
|
|
|
|
|
- return (Cache) ctx.getBean("eHCacheBackend");
|
|
|
|
|
|
+ return (Ehcache) ctx.getBean("eHCacheBackend");
|
|
}
|
|
}
|
|
|
|
|
|
private CasAuthenticationToken getToken() {
|
|
private CasAuthenticationToken getToken() {
|
|
@@ -70,10 +69,6 @@ public class EhCacheBasedTicketCacheTests extends TestCase {
|
|
proxyList, "PGTIOU-0-R0zlgrl4pdAQwBvJWO3vnNpevwqStbSGcq3vKB2SqSFFRnjPHt");
|
|
proxyList, "PGTIOU-0-R0zlgrl4pdAQwBvJWO3vnNpevwqStbSGcq3vKB2SqSFFRnjPHt");
|
|
}
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
- junit.textui.TestRunner.run(EhCacheBasedTicketCacheTests.class);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public final void setUp() throws Exception {
|
|
public final void setUp() throws Exception {
|
|
super.setUp();
|
|
super.setUp();
|
|
}
|
|
}
|
|
@@ -106,7 +101,7 @@ public class EhCacheBasedTicketCacheTests extends TestCase {
|
|
assertTrue(true);
|
|
assertTrue(true);
|
|
}
|
|
}
|
|
|
|
|
|
- Cache myCache = getCache();
|
|
|
|
|
|
+ Ehcache myCache = getCache();
|
|
cache.setCache(myCache);
|
|
cache.setCache(myCache);
|
|
assertEquals(myCache, cache.getCache());
|
|
assertEquals(myCache, cache.getCache());
|
|
}
|
|
}
|