use of com.rebuild.core.privileges.UserService in project rebuild by getrebuild.
the class GeneralEntityServiceTest method getServiceSpec.
@Test
public void getServiceSpec() {
ServiceSpec ss = Application.getService(EntityHelper.User);
Assertions.assertTrue(ss instanceof UserService);
EntityService es = Application.getEntityService(MetadataHelper.getEntity(TestAllFields).getEntityCode());
Assertions.assertTrue(es instanceof GeneralEntityService);
boolean exThrows = false;
try {
Application.getEntityService(EntityHelper.User);
} catch (RebuildException ok) {
exThrows = true;
}
Assertions.assertTrue(exThrows);
}
Aggregations