|
|
|
@ -27,6 +27,7 @@ import org.springframework.util.StringUtils; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author Luke Taylor |
|
|
|
* @author Luke Taylor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public class AbstractRememberMeServicesTests { |
|
|
|
public class AbstractRememberMeServicesTests { |
|
|
|
static User joe = new User("joe", "password", true, true,true,true, AuthorityUtils.createAuthorityList("ROLE_A")); |
|
|
|
static User joe = new User("joe", "password", true, true,true,true, AuthorityUtils.createAuthorityList("ROLE_A")); |
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +36,7 @@ public class AbstractRememberMeServicesTests { |
|
|
|
new MockRememberMeServices().decodeCookie("nonBase64CookieValue%"); |
|
|
|
new MockRememberMeServices().decodeCookie("nonBase64CookieValue%"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void setAndGetAreConsistent() throws Exception { |
|
|
|
public void setAndGetAreConsistent() throws Exception { |
|
|
|
MockRememberMeServices services = new MockRememberMeServices(); |
|
|
|
MockRememberMeServices services = new MockRememberMeServices(); |
|
|
|
assertNotNull(services.getCookieName()); |
|
|
|
assertNotNull(services.getCookieName()); |
|
|
|
|