Examples of TestEvent


Examples of org.infinitest.testrunner.TestEvent

  private static TestEvent eventWithError() {
    return eventWithError(new AssertionFailedError());
  }

  private static TestEvent eventWithError(Throwable error) {
    return new TestEvent(METHOD_FAILURE, "", TEST_NAME, TEST_METHOD, error);
  }
View Full Code Here

Examples of org.jboss.arquillian.test.spi.event.suite.TestEvent

    public void reset(@Observes final AfterClass ignored) {
        CURRENT.remove();
    }

    public static void matched(final StepDefinitionMatch match) {
        final TestEvent event;
        try {
            final Field field = StepDefinitionMatch.class.getDeclaredField("stepDefinition");
            if (!field.isAccessible()) {
                field.setAccessible(true);
            }

            final StepDefinition stepDefinition = StepDefinition.class.cast(field.get(match));
            if (ArquillianStepDefinition.class.isInstance(stepDefinition)) {
                final ArquillianStepDefinition arquillianStepDefinition = ArquillianStepDefinition.class.cast(stepDefinition);
                event = new TestEvent(arquillianStepDefinition.getInstance(), arquillianStepDefinition.getMethod());
            } else {
                throw new IllegalStateException("Can't find ArquillianStepDefinition");
            }
        } catch (final Exception e) {
            throw new IllegalStateException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.