private static void throwTestAbortedException(String message) { throw new TestAbortedException( StringUtils.isNotBlank(message) ? ("Assumption failed: " + message) : "Assumption failed"); }
private static void throwTestAbortedException(String message) { throw new TestAbortedException( StringUtils.isNotBlank(message) ? ("Assumption failed: " + message) : "Assumption failed"); }
@Example void testAbortMakesCheckExhausted() { RuntimeException toThrow = new TestAbortedException("test"); intOnlyExample("prop0", params -> { throw toThrow; }, EXHAUSTED); intOnlyExample("prop8", params -> { throw toThrow; }, EXHAUSTED); }
private static Function<? super Class<? extends Fixture>, ? extends Fixture> setUp( Class<? extends Fixture> fixtureClass) { return clz -> { Fixture f; try { f = FixtureFactory.getFixture(fixtureClass); f.setUp(); return f; } catch (FixtureCreationException fixtureCreationException) { throw new TestAbortedException( "unable to setup fixture", new ExtensionConfigurationException( "unable to setup fixture", fixtureCreationException)); } catch (TestAbortedException abortedException) { throw abortedException; } }; }