Package org.jboss.arquillian.test.spi.event.suite

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


                AnnotationMocks.drone(), AnnotationMocks.methodArgumentOneQualifier());
        Assert.assertTrue("Drone created", context.get(dronePoint).isInstantiated());

        testMethod.invoke(instance, parameters);

        fire(new After(instance, testMethod));
        fire(new AfterClass(MethodEnrichedClass.class));
        Assert.assertFalse("Drone destroyed", context.get(dronePoint).isInstantiated());
    }
View Full Code Here


                AnnotationMocks.drone());
        Assert.assertTrue("Drone created", context.get(dronePoint).isInstantiated());

        testMethod.invoke(instance, parameters);

        fire(new After(instance, testMethod));
        fire(new AfterClass(MethodEnrichedClassUnregistered.class));
        Assert.assertFalse("Drone destroyed", context.get(dronePoint).isInstantiated());
    }
View Full Code Here

        assertEventFired(AfterDroneCallableCreated.class, 2);

        assertEventFired(BeforeDroneInstantiated.class, 0);
        assertEventFired(AfterDroneInstantiated.class, 0);

        fire(new After(instance, testMethod));
        fire(new AfterClass(DummyClass.class));

        assertEventFired(BeforeDroneDestroyed.class, 0);
        assertEventFired(AfterDroneDestroyed.class, 0);
    }
View Full Code Here

        assertEventFired(BeforeDroneInstantiated.class, 2);
        assertEventFired(AfterDroneInstantiated.class, 2);

        testDummyMethod.invoke(instance, dummyParameters);

        fire(new After(instance, testDummyMethod));

        assertEventFired(BeforeDroneDestroyed.class, 0);
        assertEventFired(AfterDroneDestroyed.class, 0);

        fire(new Before(instance, testDummyMethodWithParameters));

        assertEventFired(BeforeDroneConfigured.class, 3);
        assertEventFired(AfterDroneConfigured.class, 3);
        assertEventFired(BeforeDroneCallableCreated.class, 3);
        assertEventFired(AfterDroneCallableCreated.class, 3);

        assertEventFired(BeforeDroneInstantiated.class, 2);
        assertEventFired(AfterDroneInstantiated.class, 2);

        Object[] parameters = testEnricher.resolve(testDummyMethodWithParameters);

        assertEventFired(BeforeDroneInstantiated.class, 3);
        assertEventFired(AfterDroneInstantiated.class, 3);

        testDummyMethodWithParameters.invoke(instance, parameters);

        fire(new After(instance, testDummyMethodWithParameters));

        assertEventFired(BeforeDroneDestroyed.class, 1);
        assertEventFired(AfterDroneDestroyed.class, 1);

        fire(new BeforeUnDeploy(Mockito.mock(DeployableContainer.class), new DeploymentDescription(DEPLOYMENT_NAME,
View Full Code Here

    private void executeTest(Object inspection, Method method, List<Annotation> qualifiers) {
        before.fire(new Before(inspection, method));

        test.fire(new Test(new LifecycleMethodExecutor(inspection, method, qualifiers)));

        after.fire(new After(inspection, method));
    }
View Full Code Here

    private void executeTest(Object inspection, Method method, Annotation annotation) {
        before.fire(new Before(inspection, method));

        test.fire(new Test(new LifecycleMethodExecutor(inspection, method, annotation)));

        after.fire(new After(inspection, method));
    }
View Full Code Here

        fire(new ScreenshooterExtensionConfigured());
        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        bind(TestScoped.class, TestResult.class, new TestResult(Status.PASSED));

        fire(new After(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        assertEventFired(BeforeScreenshotTaken.class, 1);
        assertEventFired(TakeScreenshot.class, 1);
        assertEventFired(AfterScreenshotTaken.class, 1);
    }
View Full Code Here

        fire(new ScreenshooterExtensionConfigured());
        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        bind(TestScoped.class, TestResult.class, new TestResult(Status.FAILED));

        fire(new After(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        assertEventFired(BeforeScreenshotTaken.class, 1);
        assertEventFired(TakeScreenshot.class, 1);
        assertEventFired(AfterScreenshotTaken.class, 1);
    }
View Full Code Here

        fire(new ScreenshooterExtensionConfigured());
        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        bind(TestScoped.class, TestResult.class, new TestResult(Status.FAILED));

        fire(new After(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        assertEventFired(BeforeScreenshotTaken.class, 1);
        assertEventFired(TakeScreenshot.class, 1);
        assertEventFired(AfterScreenshotTaken.class, 1);
    }
View Full Code Here

        fire(new ScreenshooterExtensionConfigured());
        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        bind(TestScoped.class, TestResult.class, new TestResult(Status.PASSED));

        fire(new After(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));

        assertEventFired(BeforeScreenshotTaken.class, 1);
        assertEventFired(TakeScreenshot.class, 1);
        assertEventFired(AfterScreenshotTaken.class, 1);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.test.spi.event.suite.After

Copyright © 2018 www.massapicom. 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.