activate(activation, XOO_P1_KEY);
activation = new RuleActivation(RuleTesting.XOO_X2).setSeverity(Severity.INFO);
activate(activation, XOO_P1_KEY);
// bulk change severity to BLOCKER. Parameters are not set.
RuleQuery query = new RuleQuery().setActivation(true).setQProfileKey(XOO_P1_KEY);
BulkChangeResult result = ruleActivator.bulkActivate(query, XOO_P1_KEY, "BLOCKER");
assertThat(result.countSucceeded()).isEqualTo(2);
verifyHasActiveRule(XOO_P1_KEY, RuleTesting.XOO_X1, Severity.BLOCKER, null, ImmutableMap.of("max", "7"));
verifyHasActiveRule(XOO_P1_KEY, RuleTesting.XOO_X2, Severity.BLOCKER, null, Collections.<String, String>emptyMap());