Examples of ExecutionDataWriter


Examples of org.jacoco.core.data.ExecutionDataWriter

    output = new BufferedOutputStream(new FileOutputStream(destFile,
        options.getAppend()));
  }

  public void writeExecutionData() throws IOException {
    final ExecutionDataWriter writer = new ExecutionDataWriter(output);
    runtime.collect(writer, writer, false);
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

          port);
      final RemoteControlWriter remoteWriter = new RemoteControlWriter(
          socket.getOutputStream());
      final RemoteControlReader remoteReader = new RemoteControlReader(
          socket.getInputStream());
      final ExecutionDataWriter outputWriter = new ExecutionDataWriter(
          output);
      remoteReader.setSessionInfoVisitor(outputWriter);
      remoteReader.setExecutionDataVisitor(outputWriter);

      remoteWriter.visitDumpCommand(dump, reset);
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

          port);
      final RemoteControlWriter remoteWriter = new RemoteControlWriter(
          socket.getOutputStream());
      final RemoteControlReader remoteReader = new RemoteControlReader(
          socket.getInputStream());
      final ExecutionDataWriter outputWriter = new ExecutionDataWriter(
          output);
      remoteReader.setSessionInfoVisitor(outputWriter);
      remoteReader.setExecutionDataVisitor(outputWriter);

      remoteWriter.visitDumpCommand(dump, reset);
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

  }

  @Test
  public void testShutdownWithConnection() throws Exception {
    serverSocket.waitForAccept();
    new ExecutionDataWriter(serverSocket.connect().getOutputStream());
    controller.shutdown();
    logger.assertEmpty();
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

   *
   * @param args
   * @throws IOException
   */
  public static void main(final String[] args) throws IOException {
    final ExecutionDataWriter fileWriter = new ExecutionDataWriter(
        new FileOutputStream(DESTFILE));
    final ServerSocket server = new ServerSocket(PORT, 0,
        InetAddress.getByName(ADDRESS));
    while (true) {
      final Handler handler = new Handler(server.accept(), fileWriter);
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

  public void writeExecutionData() throws IOException {

    final OutputStream output = new BufferedOutputStream(
        new FileOutputStream(execFile, append));
    try {
      final ExecutionDataWriter writer = new ExecutionDataWriter(output);
      runtime.collect(writer, writer, false);
    } finally {
      output.close();
    }
  }
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

    try {
      FileUtils.getFileUtils().createNewFile(destfile, true);

      outputStream = new BufferedOutputStream(new FileOutputStream(
          destfile));
      final ExecutionDataWriter dataWriter = new ExecutionDataWriter(
          outputStream);
      infoStore.accept(dataWriter);
      dataStore.accept(dataWriter);
    } catch (final IOException e) {
      throw new BuildException(String.format(
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

          port);
      final RemoteControlWriter remoteWriter = new RemoteControlWriter(
          socket.getOutputStream());
      final RemoteControlReader remoteReader = new RemoteControlReader(
          socket.getInputStream());
      final ExecutionDataWriter outputWriter = new ExecutionDataWriter(
          output);
      remoteReader.setSessionInfoVisitor(outputWriter);
      remoteReader.setExecutionDataVisitor(outputWriter);

      remoteWriter.visitDumpCommand(dump, reset);
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

  @Test(expected = IOException.class)
  public void testInvalidContent() throws Exception {
    final OutputStream remoteOut = mockConnection.getSocketB()
        .getOutputStream();
    new ExecutionDataWriter(remoteOut);
    final TcpConnection con = new TcpConnection(
        mockConnection.getSocketA(), runtime);
    con.init();
    remoteOut.write(123);
    con.run();
View Full Code Here

Examples of org.jacoco.core.data.ExecutionDataWriter

   */
  @Test
  public void testRemoteClose() throws Exception {
    final OutputStream remoteOut = mockConnection.getSocketB()
        .getOutputStream();
    new ExecutionDataWriter(remoteOut);

    final TcpConnection con = new TcpConnection(
        mockConnection.getSocketA(), runtime);
    con.init();

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.