mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Abstract class added
This commit is contained in:
@@ -59,13 +59,13 @@ public class AdminConsoleAuthenticationCookiesServiceUnitTest
|
|||||||
private SysAdminParams sysAdminParams;
|
private SysAdminParams sysAdminParams;
|
||||||
@Captor
|
@Captor
|
||||||
private ArgumentCaptor<Cookie> cookieCaptor;
|
private ArgumentCaptor<Cookie> cookieCaptor;
|
||||||
private AdminConsoleAuthenticationCookiesService cookiesService;
|
private AdminAuthenticationCookiesService cookiesService;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp()
|
public void setUp()
|
||||||
{
|
{
|
||||||
initMocks(this);
|
initMocks(this);
|
||||||
cookiesService = new AdminConsoleAuthenticationCookiesService(sysAdminParams, DEFAULT_COOKIE_LIFETIME);
|
cookiesService = new AdminAuthenticationCookiesService(sysAdminParams, DEFAULT_COOKIE_LIFETIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -138,7 +138,7 @@ public class AdminConsoleAuthenticationCookiesServiceUnitTest
|
|||||||
public void cookieWithCustomMaxAgeShouldBeAddedToTheResponse()
|
public void cookieWithCustomMaxAgeShouldBeAddedToTheResponse()
|
||||||
{
|
{
|
||||||
int customMaxAge = 60;
|
int customMaxAge = 60;
|
||||||
cookiesService = new AdminConsoleAuthenticationCookiesService(sysAdminParams, customMaxAge);
|
cookiesService = new AdminAuthenticationCookiesService(sysAdminParams, customMaxAge);
|
||||||
when(sysAdminParams.getAlfrescoProtocol()).thenReturn("https");
|
when(sysAdminParams.getAlfrescoProtocol()).thenReturn("https");
|
||||||
|
|
||||||
cookiesService.addCookie(COOKIE_NAME, COOKIE_VALUE, response);
|
cookiesService.addCookie(COOKIE_NAME, COOKIE_VALUE, response);
|
||||||
|
Reference in New Issue
Block a user