Examples of collect()


Examples of org.jacoco.core.runtime.LoggerRuntime.collect()

    targetInstance.run();

    // At the end of test execution we collect execution data and shutdown
    // the runtime:
    final ExecutionDataStore executionData = new ExecutionDataStore();
    runtime.collect(executionData, null, false);
    runtime.shutdown();

    // Together with the original class definition we can calculate coverage
    // information:
    final CoverageBuilder coverageBuilder = new CoverageBuilder(
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData.collect()

    IRuntime runtime = new SystemPropertiesRuntime();
    runtime.startup(data);
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    run(loader.add(target, bytes));
    final ExecutionDataStore store = new ExecutionDataStore();
    data.collect(store, new SessionInfoStore(), false);
    runtime.shutdown();
    return store;
  }

  protected abstract void run(final Class<?> targetClass) throws Exception;
View Full Code Here

Examples of org.jacoco.core.runtime.SystemPropertiesRuntime.collect()

    runtime.startup();
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    final TargetLoader loader = new TargetLoader(target, bytes);
    run(loader.getTargetClass());
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, false);
    runtime.shutdown();
    return store;
  }

  protected abstract void run(final Class<?> targetClass) throws Exception;
View Full Code Here

Examples of org.jacoco.core.runtime.SystemPropertiesRuntime.collect()

    runtime.startup();
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    final TargetLoader loader = new TargetLoader(target, bytes);
    run(loader.getTargetClass());
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, null, false);
    runtime.shutdown();
    return store;
  }

  protected abstract void run(final Class<?> targetClass) throws Exception;
View Full Code Here

Examples of org.jacoco.core.runtime.SystemPropertiesRuntime.collect()

    runtime.startup();
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    final TargetLoader loader = new TargetLoader(target, bytes);
    run(loader.getTargetClass());
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, null, false);
    runtime.shutdown();
    return store;
  }

  protected abstract void run(final Class<?> targetClass) throws Exception;
View Full Code Here

Examples of org.jitterbit.integration.data.ValidationMessageCollectorImpl.collect()

     */
    public final ValidationResult validate(ValidationContext context) {
        ValidationMessageCollectorImpl collector = new ValidationMessageCollectorImpl(context);
        ValidationResult result;
        synchronized (getDataLock()) {
            collector.collect(this);
            result = collector.result();
            currentValidationResult = result;
        }
        notifyValidationListeners(result);
        return result;
View Full Code Here

Examples of org.jitterbit.integration.data.entity.operation.OperationLinkCollector.collect()

                }
                pipelineForLinkCollection = pipeline;
            }
        }
        OperationLinkCollector collector = new OperationLinkCollector(this, pipelineForLinkCollection, lookup);
        return collector.collect();
    }

    /**
     * Method that will do the necessary changes to this operation if one of its <tt>Function</tt>s
     * is deleted. This is a no-op if <tt>f</tt> was not used by this operation, or if <tt>f</tt>
View Full Code Here

Examples of org.jitterbit.integration.data.entity.operation.pipeline.OperationFunctionCollector.collect()

        return (tgt != null && !tgt.isEmpty()) ? tgt.getContent().getID() : null;
    }

    private static void applyFunctions(Operation op, OperationPipeline pipeline) {
        OperationFunctionCollector collector = pipeline.getType().getFunctionCollector();
        OperationFunctions funcs = collector.collect(pipeline);
        op.setProperty(Operation.TRANSFORMATION_ID, funcs.getFirstTransformationId());
        op.setFunctionChain(funcs.getFunctions());
    }
   
    private static void applyHostedWebServiceSettings(Operation op, OperationPipeline pipeline) {
View Full Code Here

Examples of org.lightfish.business.servermonitoring.control.collectors.DataCollector.collect()

    @Test
    public void action_all_good() throws Exception {
        DataCollector collector = mock(DataCollector.class);
        DataPoint expectedResult = mock(DataPoint.class);
        when(collector.collect()).thenReturn(expectedResult);
        Future compute = action.compute(collector);
        assertEquals(expectedResult, compute.get());
    }

    @Test
View Full Code Here

Examples of org.lightfish.business.servermonitoring.control.collectors.DataCollector.collect()

    @Test
    public void action_with_retry() throws Exception {
        DataCollector collector = mock(DataCollector.class);
        DataPoint expectedResult = mock(DataPoint.class);
        when(collector.collect())
                .thenThrow(new Exception("Ahh!!"))
                .thenReturn(expectedResult);
        Future compute = action.compute(collector);
        assertEquals(expectedResult, compute.get());
    }
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.