Examples of RuntimeData


Examples of org.erlide.runtime.api.RuntimeData

        cat.initializeRuntimesList();
        assertThat("empty runtime list", !cat.getRuntimes().isEmpty());
        info = cat.getRuntimes().iterator().next();
        assertThat("no default info", info != RuntimeInfo.NO_RUNTIME_INFO);

        final RuntimeData data = new RuntimeData(info, "run");
        data.setNodeName("etest" + System.currentTimeMillis());
        data.setLongName(false);
        data.setCookie("c");

        final ErtsProcess erts = new ErtsProcess(data);
        erts.startUp();
        nodeProxy = new OtpNodeProxy(data);
        nodeProxy.startAndWait();
View Full Code Here

Examples of org.erlide.runtime.api.RuntimeData

        }
    }

    @Test
    public void nonManagedRuntimeWorks() {
        final RuntimeData data = new RuntimeData(info, "run");
        data.setNodeName(nodeProxy.getNodeName());
        data.setLongName(false);
        data.setCookie("c");
        data.setManaged(false);

        final OtpNodeProxy runtime2 = new OtpNodeProxy(data);
        runtime2.startAsync();
        runtime2.awaitRunning();
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

   /**
    *
    */
   private ArquillianRuntime()
   {
        runtimeData = new RuntimeData();
        runtimeData.setSessionId(UUID.randomUUID().toString());
   }
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

  @Override
  @SuppressWarnings("unchecked")
  protected Callable<Void> getInstrumentedCallable() throws Exception {
    ClassReader reader = new ClassReader(TargetLoader.getClassData(target));
    IRuntime runtime = new LoggerRuntime();
    runtime.startup(new RuntimeData());
    final Instrumenter instr = new Instrumenter(runtime);
    final byte[] instrumentedBuffer = instr.instrument(reader);
    final TargetLoader loader = new TargetLoader();

    return (Callable<Void>) loader.add(target, instrumentedBuffer)
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

  private ClassReader reader;
  private Target target;

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

Examples of org.jacoco.core.runtime.RuntimeData

   *            logger used by this agent
   */
  Agent(final AgentOptions options, final IExceptionLogger logger) {
    this.options = options;
    this.logger = logger;
    this.data = new RuntimeData();
  }
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

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

Examples of org.jacoco.core.runtime.RuntimeData

    File destFile = folder.newFile("jacoco.exec");
    AgentOptions options = new AgentOptions();
    options.setDestfile(destFile.getAbsolutePath());

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

    assertTrue("Execution data file should be created", destFile.exists());
    assertEquals("Execution data file should be empty", 0,
        destFile.length());
  }
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

    File destFile = folder.newFile("jacoco.exec");
    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",
View Full Code Here

Examples of org.jacoco.core.runtime.RuntimeData

    AgentOptions options = new AgentOptions();
    options.setDestfile(folder.newFolder("folder").getAbsolutePath());
    FileOutput controller = new FileOutput();

    // Startup should fail as the file can not be created:
    controller.startup(options, new RuntimeData());
  }
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.