public Void execute(CommandContext commandContext) { // disable tenant check for the current command commandContext.disableTenantCheck(); assertThat(commandContext.TenantCheckEnabled, @is(false)); assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(false)); return(null); }
public Void execute(CommandContext commandContext) { commandContext.disableTenantCheck(); assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(false)); commandContext.enableTenantCheck(); assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(true)); return(null); }