Examples of RunId


Examples of com.sun.faban.harness.common.RunId

            String runIdS = runDir.getName();
            try {
                if (!AccessController.isViewAllowed(user, runIdS) || runIdS.contains("analysis")) {
                    continue;
                }
                RunId runId = new RunId(runIdS);
                RunResult result = getInstance0(runId);
                if (result == null) {
                    continue;
                }
                runs.add(result);
View Full Code Here

Examples of com.sun.faban.harness.common.RunId

     * Deletes a certain run.
     * @param RunId of run run to delete
     * @return true if delete succeeds, false otherwise
     */
    public boolean delete(String runIdStr) {
        RunId runId = new RunId(runIdStr);
        File f = runId.getResultDir();
        if (f.isDirectory()) {
            return(FileHelper.recursiveDelete(f));
        }
        return(true);
    }
View Full Code Here

Examples of com.sun.faban.harness.common.RunId

        Set<String> runIds = tagEngine.search(tags);
        Double achievedMetric = 0.0;
        String achievedMetricUnit = " ";
        for (String runid : runIds) {
            try {
                RunId runId = new RunId(runid);
                RunResult res = getInstance(runId);
                if (res != null && achievedMetric < res.metric.value){
                    achievedMetric = res.metric.value;
                    achievedMetricUnit = res.metricUnit;
                }
View Full Code Here

Examples of com.sun.faban.harness.common.RunId

        for (File runDir : dirs) {
            if (!runDir.isDirectory())
                continue;
            String runIdS = runDir.getName();
            try {
                RunId runId = new RunId(runIdS);
                if (!AccessController.isViewAllowed(user, runIdS))
                    continue;
                result0 = getInstance0(runId);
                FeedRecord feedRecord = new FeedRecord(runId, result0);
                feedList.add(feedRecord);
View Full Code Here

Examples of fi.jumi.core.api.RunId

    private final RunIdSequence sequence = new RunIdSequence();

    @Test
    public void starts_from_the_first_RunId() {
        assertThat(sequence.nextRunId(), is(new RunId(RunId.FIRST_ID)));
    }
View Full Code Here

Examples of fi.jumi.core.api.RunId

        assertThat(sequence.nextRunId(), is(new RunId(RunId.FIRST_ID)));
    }

    @Test
    public void each_subsequent_RunId_is_incremented_by_one() {
        RunId id0 = sequence.nextRunId();
        RunId id1 = sequence.nextRunId();
        RunId id2 = sequence.nextRunId();

        assertThat(id1.toInt(), is(id0.toInt() + 1));
        assertThat(id2.toInt(), is(id1.toInt() + 1));
    }
View Full Code Here

Examples of fi.jumi.core.api.RunId

    public void checkContainsRun(String... startAndEndEvents) {
        assertNotNull("did not contain a run with the expected events", findRun(startAndEndEvents));
    }

    public String getRunOutput(Class<?> testClass, String testName) {
        RunId runId = findRun(testClass.getSimpleName(), testName, "/", "/");
        assertNotNull("run not found", runId);
        return getRunOutput(runId);
    }
View Full Code Here

Examples of fi.jumi.core.api.RunId

    @Test
    public void tests_discovered_after_starting_a_run_when_root_description_is_updated() throws Exception {
        expect.onTestFound(TestId.ROOT, "DummyTest");
        expect.onTestFound(TestId.of(0), "testOne");
        expect.onTestFound(TestId.of(1), "testTwo");
        expect.onRunStarted(new RunId(1));
        expect.onTestStarted(new RunId(1), TestId.ROOT);
        expect.onTestStarted(new RunId(1), TestId.of(1));
        expect.onTestFinished(new RunId(1), TestId.of(1));
        expect.onTestFinished(new RunId(1), TestId.ROOT);
        expect.onRunFinished(new RunId(1));

        spy.replay();

        Description suite = Description.createSuiteDescription(DummyTest.class);
        Description testOne = Description.createTestDescription(DummyTest.class, "testOne");
View Full Code Here

Examples of fi.jumi.core.api.RunId

    @Test
    public void tests_discovered_after_starting_a_run_but_without_root_description_updated() throws Exception {
        expect.onTestFound(TestId.ROOT, "DummyTest");
        expect.onTestFound(TestId.of(0), "testOne");
        expect.onTestFound(TestId.of(1), "testTwo");
        expect.onRunStarted(new RunId(1));
        expect.onTestStarted(new RunId(1), TestId.ROOT);
        expect.onTestStarted(new RunId(1), TestId.of(1));
        expect.onTestFinished(new RunId(1), TestId.of(1));
        expect.onTestFinished(new RunId(1), TestId.ROOT);
        expect.onRunFinished(new RunId(1));

        spy.replay();

        Description suite = Description.createSuiteDescription(DummyTest.class);
        Description testOne = Description.createTestDescription(DummyTest.class, "testOne");
View Full Code Here

Examples of fi.jumi.core.api.RunId

    @Test
    public void descriptions_which_are_free_form_text() {
        expect.onTestFound(TestId.ROOT, "suite name using $ and . special characters");
        expect.onTestFound(TestId.of(0), "test name using $ and . special characters");
        expect.onRunStarted(new RunId(1));
        expect.onTestStarted(new RunId(1), TestId.ROOT);
        expect.onTestStarted(new RunId(1), TestId.of(0));
        expect.onTestFinished(new RunId(1), TestId.of(0));
        expect.onTestFinished(new RunId(1), TestId.ROOT);
        expect.onRunFinished(new RunId(1));

        spy.replay();

        Description suite = Description.createSuiteDescription("suite name using $ and . special characters");
        Description test = Description.createSuiteDescription("test name using $ and . special characters");
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.