Package org.arquillian.extension.recorder.video

Examples of org.arquillian.extension.recorder.video.VideoConfiguration


    @Inject
    private Event<VideoExtensionConfigured> extensionConfiguredEvent;

    public void configureExtension(@Observes ReportingExtensionConfigured event, ArquillianDescriptor descriptor) {
        VideoConfiguration configuration = new DesktopVideoConfiguration(reporterConfiguration.get());

        for (ExtensionDef extension : descriptor.getExtensions()) {
            if (extension.getExtensionName().equals(EXTENSION_NAME)) {
                configuration.setConfiguration(extension.getExtensionProperties());
                configuration.validate();
                break;
            }
        }

        this.configuration.set(configuration);
View Full Code Here


    @Override
    public Object lookup(ArquillianResource resource, Annotation... qualifiers) {
        Recorder recorder = this.recorder.get();

        VideoConfiguration configuration = this.configuration.get();

        if (configuration.getStartBeforeClass() || configuration.getStartBeforeSuite()
            || configuration.getStartBeforeTest() || configuration.getTakeOnlyOnFail()) {
            throw new IllegalStateException("It is not possible to inject video recorder into test "
                + "when you have specified that you want to take videos automatically via configuration "
                + "where you set one of start* properties to true or takeOnlyOnFail to true. In order "
                + "to use recorder manually in test class, you have to set all mentioned above to false.");
        }
View Full Code Here

TOP

Related Classes of org.arquillian.extension.recorder.video.VideoConfiguration

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.