Examples of writeExecutionData()


Examples of org.jacoco.agent.rt.internal.output.FileOutput.writeExecutionData()

    AgentOptions options = new AgentOptions();
    options.setDestfile(destFile.getAbsolutePath());

    FileOutput controller = new FileOutput();
    controller.startup(options, new RuntimeData());
    controller.writeExecutionData(false);
    controller.shutdown();

    assertTrue("Execution data file should be created", destFile.exists());
    assertTrue("Execution data file should have contents",
        destFile.length() > 0);
View Full Code Here

Examples of org.jacoco.agent.rt.internal.output.TcpConnection.writeExecutionData()

      }
    });

    assertBlocks(f);

    con.writeExecutionData(false);
    readAndAssertData();

    con.close();
    f.get();
  }
View Full Code Here

Examples of org.jacoco.agent.rt.internal.output.TcpConnection.writeExecutionData()

  @Test
  public void testLocalDumpWithoutInit() throws Exception {
    final TcpConnection con = new TcpConnection(
        mockConnection.getSocketA(), data);
    // Must not write any data as we're not initialized:
    con.writeExecutionData(false);

    assertEquals(0, mockConnection.getSocketB().getInputStream()
        .available());
  }
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.