use of org.apereo.portal.groups.pags.TestPersonAttributesGroupTestDefinition in project uPortal by Jasig.
the class GuestUserTesterTest method testGuestTrue.
@Test
public void testGuestTrue() throws Exception {
GuestUserTester tester = new GuestUserTester(new TestPersonAttributesGroupTestDefinition("", "true"));
Assert.assertTrue(tester.test(createGuestPerson()));
Assert.assertFalse(tester.test(createPerson()));
}
use of org.apereo.portal.groups.pags.TestPersonAttributesGroupTestDefinition in project uPortal by Jasig.
the class GuestUserTesterTest method testGuestFalse.
@Test
public void testGuestFalse() throws Exception {
GuestUserTester tester = new GuestUserTester(new TestPersonAttributesGroupTestDefinition("", "false"));
Assert.assertTrue(tester.test(createPerson()));
Assert.assertFalse(tester.test(createGuestPerson()));
}
Aggregations