} catch ( NotFoundException e ) {
// Expected exception
}
try {
pentahoRole = new PentahoRole( null, ROLE_6, ROLE_DESCRIPTION_6 );
userRoleDaoProxy.deleteRole( pentahoRole );
fail( "Exception not thrown" );
} catch ( Exception ex ) {
// Expected exception
}
try {
pentahoRole = new PentahoRole( mainTenant_1, null, ROLE_DESCRIPTION_6 );
userRoleDaoProxy.deleteRole( pentahoRole );
fail( "Exception not thrown" );
} catch ( NotFoundException e ) {
// Expected exception
}
try {
pentahoRole = new PentahoRole( mainTenant_1, UNKNOWN_ROLE, ROLE_DESCRIPTION_6 );
userRoleDaoProxy.deleteRole( pentahoRole );
fail( "Exception not thrown" );
} catch ( NotFoundException e ) {
// Expected exception
}