Search in sources :

Example 1 with CacheUser

use of org.ligoj.app.iam.model.CacheUser 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");
}
Also used : CacheCompany(org.ligoj.app.iam.model.CacheCompany) CacheUser(org.ligoj.app.iam.model.CacheUser) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 CacheCompany (org.ligoj.app.iam.model.CacheCompany)1 CacheUser (org.ligoj.app.iam.model.CacheUser)1