fix: add AccountService mock to TenantPortalServiceTest constructor
The TenantPortalService constructor gained an AccountService parameter in the consolidation refactor — the test was missing it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.siegeln.cameleer.saas.portal;
|
||||
|
||||
import net.siegeln.cameleer.saas.account.AccountService;
|
||||
import net.siegeln.cameleer.saas.config.TenantContext;
|
||||
import net.siegeln.cameleer.saas.identity.LogtoManagementClient;
|
||||
import net.siegeln.cameleer.saas.identity.ServerApiClient;
|
||||
@@ -46,6 +47,9 @@ class TenantPortalServiceTest {
|
||||
@Mock
|
||||
private TenantProvisioner tenantProvisioner;
|
||||
|
||||
@Mock
|
||||
private AccountService accountService;
|
||||
|
||||
private final ProvisioningProperties provisioningProps = new ProvisioningProperties(
|
||||
null, null, null, null, null, "test.example.com", "https", null, null, null, null, null, null, null, null, null);
|
||||
|
||||
@@ -56,7 +60,7 @@ class TenantPortalServiceTest {
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
TenantContext.setTenantId(tenantId);
|
||||
tenantPortalService = new TenantPortalService(tenantService, licenseService, serverApiClient, logtoClient, tenantProvisioner, provisioningProps, null);
|
||||
tenantPortalService = new TenantPortalService(tenantService, licenseService, serverApiClient, logtoClient, tenantProvisioner, provisioningProps, null, accountService);
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
|
||||
Reference in New Issue
Block a user