public class FailFastStrategyTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
-
+
@Test
public void test() {
FailFastStrategy strat = new FailFastStrategy();
-
- //simulate no issues found
+
+ // simulate no issues found
assertTrue(strat.isOK());
assertTrue("No errors found.".equals(strat.getErrorMsg()));
-
- //simulate an issue found
+
+ // simulate an issue found
String testError = "hi i'm a problem";
thrown.expect(AAISchemaValidationException.class);
thrown.expectMessage(testError);