Search in sources :

Example 6 with TestPersonAttributesGroupTestDefinition

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()));
}
Also used : TestPersonAttributesGroupTestDefinition(org.apereo.portal.groups.pags.TestPersonAttributesGroupTestDefinition) Test(org.junit.Test)

Example 7 with TestPersonAttributesGroupTestDefinition

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()));
}
Also used : TestPersonAttributesGroupTestDefinition(org.apereo.portal.groups.pags.TestPersonAttributesGroupTestDefinition) Test(org.junit.Test)

Aggregations

TestPersonAttributesGroupTestDefinition (org.apereo.portal.groups.pags.TestPersonAttributesGroupTestDefinition)7 Test (org.junit.Test)7 IPersonTester (org.apereo.portal.groups.pags.IPersonTester)1 IPerson (org.apereo.portal.security.IPerson)1