return;
}
if (feature == null || !feature.isEnabled()) {
- throw MessageException.of("Cluster mode can't be enabled. Please install the High Availability plugin.");
+ throw MessageException.of(
+ "Cluster mode can't be enabled. Please install the Data Center Edition. More details at https://redirect.sonarsource.com/editions/datacenter.html.");
}
}
public class ClusterVerificationTest {
+ private static final String ERROR_MESSAGE = "Cluster mode can't be enabled. Please install the Data Center Edition. More details at https://redirect.sonarsource.com/editions/datacenter.html.";
+
@Rule
public ExpectedException expectedException = ExpectedException.none();
ClusterVerification underTest = new ClusterVerification(webServer);
expectedException.expect(MessageException.class);
- expectedException.expectMessage("Cluster mode can't be enabled. Please install the High Availability plugin.");
+ expectedException.expectMessage(ERROR_MESSAGE);
underTest.start();
}
ClusterVerification underTest = new ClusterVerification(webServer, feature);
expectedException.expect(MessageException.class);
- expectedException.expectMessage("Cluster mode can't be enabled. Please install the High Availability plugin.");
+ expectedException.expectMessage(ERROR_MESSAGE);
underTest.start();
}