DefaultExportHandler defaultExportHandler = new DefaultExportHandler();
defaultExportHandler.setConverters( converterMap );
defaultExportHandler.setRepository( repo );
loginAsRepositoryAdmin();
ITenant systemTenant =
tenantManager.createTenant( null, ServerRepositoryPaths.getPentahoRootFolderName(), adminAuthorityName,
authenticatedAuthorityName, "Anonymous" );
userRoleDao.createUser( systemTenant, sysAdminUserName, "password", "", new String[]{adminAuthorityName} );
login( sysAdminUserName, systemTenant, new String[]{adminAuthorityName, authenticatedAuthorityName} );
ITenant mainTenant_1 =
tenantManager.createTenant( systemTenant, MAIN_TENANT_1, adminAuthorityName, authenticatedAuthorityName,
"Anonymous" );
userRoleDao.createUser( mainTenant_1, "admin", "password", "", new String[]{adminAuthorityName} );
try{
login( "admin", mainTenant_1, new String[] { authenticatedAuthorityName, adminAuthorityName } );