Examples of IRuntime


Examples of org.jacoco.core.runtime.IRuntime

    @SuiteScoped
    private InstanceProducer<IRuntime> runtimeInst;

    public void createRuntime(@Observes BeforeSuite event) throws Exception
    {
        IRuntime runtime = ArquillianRuntime.getInstance();
        runtime.setSessionId(UUID.randomUUID().toString());
        runtime.startup();

        runtimeInst.set(runtime);
    }
View Full Code Here

Examples of org.jacoco.core.runtime.IRuntime

    @Inject
    private Instance<ServiceLoader> serviceLoader;

    public void writeCoverageData(@Observes AfterSuite arqEvent) throws Exception {
        IRuntime runtime = runtimeInst.get();
        if (runtime != null) {
            ByteArrayOutputStream coverageOutputStream = null;
            try {
                coverageOutputStream = new ByteArrayOutputStream();
                ExecutionDataWriter writer = new ExecutionDataWriter(coverageOutputStream);
                runtime.collect(writer, writer, true);
            } finally {
                runtime.shutdown();
                if (coverageOutputStream != null) {
                    try {
                        coverageOutputStream.close();
                    } catch (Exception e) {
                        throw new RuntimeException("Could not close coverage file", 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.