Search in sources :

Example 1 with PreferenceScopeImpl

use of org.uberfire.preferences.shared.impl.PreferenceScopeImpl in project kie-wb-common by kiegroup.

the class WorkbenchPreferenceScopeResolverTest method setup.

@Before
public void setup() {
    final List<PreferenceScope> order = new ArrayList<>();
    globalScope = new PreferenceScopeImpl("global", "global", null);
    userScope = new PreferenceScopeImpl("user", "my-user", null);
    projectScope = new PreferenceScopeImpl("user", "my-user", new PreferenceScopeImpl("project", "my-project", null));
    order.add(projectScope);
    order.add(userScope);
    order.add(globalScope);
    scopeResolver = new WorkbenchPreferenceScopeResolver(order);
}
Also used : PreferenceScope(org.uberfire.preferences.shared.PreferenceScope) ArrayList(java.util.ArrayList) PreferenceScopeImpl(org.uberfire.preferences.shared.impl.PreferenceScopeImpl) Before(org.junit.Before)

Aggregations

ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1 PreferenceScope (org.uberfire.preferences.shared.PreferenceScope)1 PreferenceScopeImpl (org.uberfire.preferences.shared.impl.PreferenceScopeImpl)1