Examples of ExecutionDataStore


Examples of org.jacoco.core.data.ExecutionDataStore

  /**
   * Creates a new runtime.
   */
  protected AbstractRuntime() {
    store = new ExecutionDataStore();
    access = new ExecutionDataAccess(store);
    sessionId = generateSessionId();
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

  private void loadExecutionData() throws IOException {
    final FileInputStream fis = new FileInputStream(executionDataFile);
    final ExecutionDataReader executionDataReader = new ExecutionDataReader(
        fis);
    executionDataStore = new ExecutionDataStore();
    sessionInfoStore = new SessionInfoStore();

    executionDataReader.setExecutionDataVisitor(executionDataStore);
    executionDataReader.setSessionInfoVisitor(sessionInfoStore);
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

  @Before
  public void setup() throws Exception {
    final ClassReader reader = new ClassReader(TargetLoader
        .getClassData(target));
    final ExecutionDataStore store = execute(reader);
    analyze(reader, store);
    source = Source.getSourceFor(target);
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

    IRuntime runtime = new SystemPropertiesRuntime();
    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;
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

    }
  }

  private void loadExecutionData() {
    sessionInfoStore = new SessionInfoStore();
    executionDataStore = new ExecutionDataStore();
    for (final Iterator<?> i = executiondataElement.iterator(); i.hasNext();) {
      final Resource resource = (Resource) i.next();
      InputStream in = null;
      try {
        in = new BufferedInputStream(resource.getInputStream());
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

  /**
   * Creates a new runtime.
   */
  protected AbstractRuntime() {
    store = new ExecutionDataStore();
    access = new ExecutionDataAccess(store);
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

    final RemoteControlReader remoteReader = new RemoteControlReader(socket
        .getInputStream());

    controller.writeExecutionData();

    final ExecutionDataStore execStore = new ExecutionDataStore();
    remoteReader.setExecutionDataVisitor(execStore);
    final SessionInfoStore infoStore = new SessionInfoStore();
    remoteReader.setSessionInfoVisitor(infoStore);

    remoteReader.read();

    assertEquals("Foo", execStore.get(0x12345678).getName());

    final List<SessionInfo> infos = infoStore.getInfos();
    assertEquals(1, infos.size());
    assertEquals("stubid", infos.get(0).getId());
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

    final Runnable targetInstance = (Runnable) targetClass.newInstance();
    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:
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

  private PackageFragementRootAnalyzer analyzer;

  @Before
  public void setup() throws Exception {
    javaProject = new JavaProjectKit("project");
    final ExecutionDataStore data = new ExecutionDataStore();
    analyzer = new PackageFragementRootAnalyzer(data);
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataStore

    final Runnable targetInstance = (Runnable) targetClass.newInstance();
    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:
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.