Examples of RecorderStrategyRegister


Examples of org.arquillian.extension.recorder.RecorderStrategyRegister

        ScreenshooterEnvironmentCleaner cleaner = getManager().getContext(ApplicationContext.class)
            .getObjectStore()
            .get(ScreenshooterEnvironmentCleaner.class);
        Assert.assertNotNull(cleaner);

        RecorderStrategyRegister instance = getManager().getContext(ApplicationContext.class)
            .getObjectStore()
            .get(RecorderStrategyRegister.class);

        Assert.assertNotNull(instance);

        instance.add(new DefaultScreenshootingStrategy());
        instance.add(new DefaultAnnotationScreenshootingStrategy());

        Assert.assertEquals(2, instance.getAll().size());
        Assert.assertEquals(DefaultScreenshootingStrategy.class, instance.getAll().iterator().next().getClass());
    }
View Full Code Here

Examples of org.arquillian.extension.recorder.RecorderStrategyRegister

        }
    }

    private void initRecorderStrategyRegister() {
        RecorderStrategyRegister instance = getManager().getContext(ApplicationContext.class)
            .getObjectStore()
            .get(RecorderStrategyRegister.class);

        Assert.assertNotNull(instance);

        DefaultScreenshootingStrategy defaultStrategy = new DefaultScreenshootingStrategy();
        defaultStrategy.setConfiguration(configuration);

        DefaultAnnotationScreenshootingStrategy annotationStrategy = new DefaultAnnotationScreenshootingStrategy();
        annotationStrategy.setConfiguration(configuration);

        instance.add(defaultStrategy);
        instance.add(annotationStrategy);
    }
View Full Code Here

Examples of org.arquillian.extension.recorder.RecorderStrategyRegister

            strategy.setConfiguration(configuration.get());
        }

        Set<RecorderStrategy<?>> recorderStrategies = new HashSet<RecorderStrategy<?>>(strategies);

        recorderStrategyRegister.set(new RecorderStrategyRegister());
        recorderStrategyRegister.get().addAll(recorderStrategies);

        ScreenshooterEnvironmentCleaner cleaner = serviceLoader.get()
            .onlyOne(ScreenshooterEnvironmentCleaner.class, DefaultScreenshooterEnvironmentCleaner.class);
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.