use of org.ligoj.app.iam.model.CacheCompany in project ligoj-api by ligoj.
the class BeanTest method testCacheUser.
@Test
public void testCacheUser() {
final CacheUser user = new CacheUser();
// Simple user attributes
check(user, CacheUser::setCompany, CacheUser::getCompany, new CacheCompany());
check(user, CacheUser::setFirstName, CacheUser::getFirstName, "first");
check(user, CacheUser::setLastName, CacheUser::getLastName, "last");
check(user, CacheUser::setMails, CacheUser::getMails, "singlemail");
}
Aggregations