@Test public void testUserHasAccessOnCategoriesOfContentType_browse() { accessEntity.setAdminBrowseAccess(true); boolean hasAccess = servlet.userHasAccessOnCategoriesOfContentType(userEntity, contentType, CREATE_BROWSE); Assert.assertFalse(hasAccess); }
@Test public void testUserHasAccessOnCategoriesOfContentType_read_only() { accessEntity.setReadAccess(true); boolean hasAccess = servlet.userHasAccessOnCategoriesOfContentType( userEntity, contentType, CategoryAccessType.READ); Assert.assertTrue(hasAccess); }