Examples of AgentOptions


Examples of org.jacoco.core.runtime.AgentOptions

  /**
   * Create default agent options
   */
  protected AbstractCoverageTask() {
    super();
    agentOptions = new AgentOptions();
    enabled = true;
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

        .get(AGENT_ARTIFACT_NAME);
    return jacocoAgentArtifact.getFile();
  }

  private AgentOptions createAgentOptions() {
    final AgentOptions agentOptions = new AgentOptions();
    final String destPath = destFile.getAbsolutePath();
    agentOptions.setDestfile(destPath);
    if (append != null) {
      agentOptions.setAppend(append.booleanValue());
    }
    if (includes != null) {
      agentOptions.setIncludes(includes);
    }
    if (excludes != null) {
      agentOptions.setExcludes(excludes);
    }
    if (exclClassLoaders != null) {
      agentOptions.setExclClassloader(exclClassLoaders);
    }
    if (sessionId != null) {
      agentOptions.setSessionId(sessionId);
    }
    if (dumpOnExit != null) {
      agentOptions.setDumpOnExit(dumpOnExit.booleanValue());
    }
    if (output != null) {
      agentOptions.setOutput(output);
    }
    if (address != null) {
      agentOptions.setAddress(address);
    }
    if (port != null) {
      agentOptions.setPort(port.intValue());
    }
    return agentOptions;
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

  private StubRuntime runtime;

  @Before
  public void setup() {
    recorder = new ExceptionRecorder();
    options = new AgentOptions();
    classLoader = getClass().getClassLoader();
    runtime = new StubRuntime();
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

  private TcpServerController controller;

  @Before
  public void setup() throws Exception {
    options = new AgentOptions();
    runtime = new StubRuntime();
    logger = new ExceptionRecorder();
    serverSocket = new MockServerSocket();
    controller = new TcpServerController(logger) {
      @Override
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

   *
   * @param options
   *            agent options as text string
   */
  public JacocoAgent(String options, IExceptionLogger logger) {
    this(new AgentOptions(options), logger);
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

   *
   * @param options
   *            agent options as text string
   */
  public JacocoAgent(String options, IExceptionLogger logger) {
    this(new AgentOptions(options), logger);
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

  /**
   * Create default agent options
   */
  protected AbstractCoverageTask() {
    agentOptions = new AgentOptions();
    enabled = true;
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

          throws IOException {
        return con.getSocketA();
      }
    };
    runtime = new StubRuntime();
    controller.startup(new AgentOptions(), runtime);
    remoteReader = new RemoteControlReader(remoteSocket.getInputStream());
  }
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

    coverageFile.delete();
  }

  @Test
  public void testWriteData() throws Exception {
    AgentOptions options = new AgentOptions();
    options.setDestfile(coverageFile.getAbsolutePath());

    IRuntime runtime = new StubRuntime();

    LocalController controller = new LocalController();
    controller.startup(options, runtime);
View Full Code Here

Examples of org.jacoco.core.runtime.AgentOptions

  private ClassLoader classLoader;

  @Before
  public void setup() {
    recorder = new ExceptionRecorder();
    options = new AgentOptions();
    classLoader = getClass().getClassLoader();
  }
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.