Search in sources :

Example 1 with IPersonalizer

use of org.apereo.portal.utils.personalize.IPersonalizer in project uPortal by Jasig.

the class PersonalizationFilterTest method mockPersonalizer.

public static IPersonalizer mockPersonalizer() {
    final IPersonalizer p = new PersonalizerImpl();
    ReflectionTestUtils.setField(p, "prefix", "apereo.");
    ReflectionTestUtils.setField(p, "patternStr", "\\{\\{(.*?)\\}\\}");
    ReflectionTestUtils.invokeMethod(p, "postConstruct", null);
    return p;
}
Also used : IPersonalizer(org.apereo.portal.utils.personalize.IPersonalizer) PersonalizerImpl(org.apereo.portal.utils.personalize.PersonalizerImpl)

Aggregations

IPersonalizer (org.apereo.portal.utils.personalize.IPersonalizer)1 PersonalizerImpl (org.apereo.portal.utils.personalize.PersonalizerImpl)1