Abstract class added

This commit is contained in:
pmm
2025-04-24 19:51:37 +05:30
parent 586776375b
commit 0f45c3e1fd

View File

@@ -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);