use of org.ligoj.app.iam.IamConfiguration in project ligoj-api by ligoj.
the class EmptyIamProviderTest method getConfiguration.
@Test
public void getConfiguration() {
final IamConfiguration configuration = provider.getConfiguration();
Assertions.assertNotNull(configuration);
Assertions.assertNotNull(configuration.getCompanyRepository());
Assertions.assertNotNull(configuration.getUserRepository());
Assertions.assertNotNull(configuration.getGroupRepository());
Assertions.assertEquals("login", configuration.getUserRepository().toUser("login").getId());
}
use of org.ligoj.app.iam.IamConfiguration in project ligoj-api by ligoj.
the class TestAbstractAppTest method coverage.
/**
* Only there fore coverage, no Spring involved.
*/
@Test
public void coverage() {
iamProvider = Mockito.mock(IamProvider.class);
IamConfiguration configuration = Mockito.mock(IamConfiguration.class);
Mockito.when(iamProvider.getConfiguration()).thenReturn(configuration);
em = Mockito.mock(EntityManager.class);
getUser();
getCompany();
getGroup();
persistSystemEntities();
}
Aggregations