Search in sources :

Example 1 with RepsitoryUserTestImpl

use of org.pentaho.di.ui.repository.repositoryexplorer.abs.model.RepsitoryUserTestImpl in project pentaho-kettle by pentaho.

the class UIEESecurityUserTest method init.

@Before
public void init() {
    roles.add(adminRole);
    roles.add(anonymousRole);
    roles.add(authenticatedRole);
    roles.add(ceoRole);
    roles.add(ctoRole);
    roles.add(devRole);
    roles.add(devmgrRole);
    roles.add(isRole);
    joeUser = new EEUserInfo("joe", "password", "joe", "joe", true);
    patUser = new EEUserInfo("pat", "password", "pat", "pat", true);
    suzyUser = new EEUserInfo("suzy", "password", "suzy", "suzy", true);
    tiffanyUser = new EEUserInfo("tiffany", "password", "tiffany", "tiffany", true);
    joeUser.addRole(roles.get(0));
    joeUser.addRole(roles.get(2));
    joeUser.addRole(roles.get(3));
    suzyUser.addRole(roles.get(2));
    suzyUser.addRole(roles.get(4));
    suzyUser.addRole(roles.get(7));
    patUser.addRole(roles.get(2));
    patUser.addRole(roles.get(5));
    tiffanyUser.addRole(roles.get(2));
    tiffanyUser.addRole(roles.get(5));
    tiffanyUser.addRole(roles.get(6));
    users.add(joeUser);
    users.add(patUser);
    users.add(suzyUser);
    users.add(tiffanyUser);
    sm = new RepsitoryUserTestImpl();
}
Also used : EEUserInfo(org.pentaho.di.repository.pur.model.EEUserInfo) RepsitoryUserTestImpl(org.pentaho.di.ui.repository.repositoryexplorer.abs.model.RepsitoryUserTestImpl) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 EEUserInfo (org.pentaho.di.repository.pur.model.EEUserInfo)1 RepsitoryUserTestImpl (org.pentaho.di.ui.repository.repositoryexplorer.abs.model.RepsitoryUserTestImpl)1