Package org.jacoco.core.runtime

Examples of org.jacoco.core.runtime.SystemPropertiesRuntime


  private void testFrames(Class<?> target) throws IOException {
    testFrames(TargetLoader.getClassDataAsBytes(target));
  }

  private void testFrames(byte[] source) throws IOException {
    IRuntime runtime = new SystemPropertiesRuntime();
    Instrumenter instrumenter = new Instrumenter(runtime);
    source = calculateFrames(source);
    byte[] actual = instrumenter.instrument(source, "TestTarget");
    byte[] expected = calculateFrames(actual);
View Full Code Here


  private Instrumenter instrumenter;

  @Before
  public void setup() throws Exception {
    runtime = new SystemPropertiesRuntime();
    instrumenter = new Instrumenter(runtime);
    runtime.startup(new RuntimeData());
  }
View Full Code Here

  }

  private ExecutionDataStore execute(final ClassReader reader)
      throws Exception {
    RuntimeData data = new RuntimeData();
    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;
  }
View Full Code Here

TOP

Related Classes of org.jacoco.core.runtime.SystemPropertiesRuntime

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.