Search in sources :

Example 1 with LinksConfig

use of uk.gov.pay.adminusers.app.config.LinksConfig in project pay-adminusers by alphagov.

the class ForgottenPasswordServicesTest method before.

@BeforeEach
public void before() {
    LinksConfig mockLinks = mock(LinksConfig.class);
    when(mockLinks.getSelfserviceUrl()).thenReturn(SELFSERVICE_URL);
    when(mockConfig.getLinks()).thenReturn(mockLinks);
    forgottenPasswordServices = new ForgottenPasswordServices(userDao, forgottenPasswordDao, new LinksBuilder("http://localhost"), mockNotificationService, mockConfig);
}
Also used : LinksConfig(uk.gov.pay.adminusers.app.config.LinksConfig) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with LinksConfig

use of uk.gov.pay.adminusers.app.config.LinksConfig in project pay-adminusers by alphagov.

the class UserInviteCreatorTest method setUp.

@BeforeEach
public void setUp() {
    LinksConfig mockLinks = mock(LinksConfig.class);
    when(mockLinks.getSelfserviceUrl()).thenReturn(SELFSERVICE_URL);
    when(mockConfig.getLinks()).thenReturn(mockLinks);
    userInviteCreator = new UserInviteCreator(mockInviteDao, mockUserDao, mockRoleDao, linksConfig, mockNotificationService, mockServiceDao);
}
Also used : LinksConfig(uk.gov.pay.adminusers.app.config.LinksConfig) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with LinksConfig

use of uk.gov.pay.adminusers.app.config.LinksConfig in project pay-adminusers by alphagov.

the class SendLiveAccountCreatedEmailServiceTest method setUp.

@BeforeEach
public void setUp() {
    LinksConfig mockLinks = mock(LinksConfig.class);
    when(mockLinks.getSelfserviceServicesUrl()).thenReturn(SELFSERVICE_SERVICES_URL);
    when(mockConfig.getLinks()).thenReturn(mockLinks);
    sendLiveAccountCreatedEmailService = new SendLiveAccountCreatedEmailService(mockGovUkPayAgreementDao, mockNotificationService, mockConfig);
}
Also used : LinksConfig(uk.gov.pay.adminusers.app.config.LinksConfig) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)3 LinksConfig (uk.gov.pay.adminusers.app.config.LinksConfig)3