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);
}
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);
}
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);
}
Aggregations