private SecurityHelper getAuthorizedSecurityHelper() { SecurityHelper authorizedSecurityHelper = spy( new SecurityHelper() ); IUserRoleListService userRoleListServiceMock = getUserRoleListServiceMock( DEF_USERNAME, ALL_ROLES_ARRAY ); doReturn( userRoleListServiceMock ).when( authorizedSecurityHelper ).getUserRoleListService(); return authorizedSecurityHelper; }
@Before public void init() { setSystemSettingsService( null ); PentahoSystemBoot boot = new PentahoSystemBoot(); boot.setFilePath( "test-src/solution" ); emptySecurityHelper = spy( new SecurityHelper() ); }