Package edu.stanford.bmir.protege.web.shared.metrics

Examples of edu.stanford.bmir.protege.web.shared.metrics.BooleanMetricValue


        testname = "testname";
    }

    @Test(expected = NullPointerException.class)
    public void shouldThrowNullPointerExceptionIfNameIsNull() {
        new BooleanMetricValue(null, false);
    }
View Full Code Here


        new BooleanMetricValue(null, false);
    }

    @Test
    public void shouldReturnSpecifiedName() {
        BooleanMetricValue value = new BooleanMetricValue(testname, true);
        assertThat(value.getMetricName(), is(equalTo(testname)));
    }
View Full Code Here

    }

    @Test
    public void shouldReturnTrueAsYes() {
        String testname = "testname";
        BooleanMetricValue value = new BooleanMetricValue(testname, true);
        assertThat(value.getBrowserText(), is(equalTo("Yes")));
    }
View Full Code Here


    @Test
    public void shouldReturnFalseAsNo() {
        String testname = "testname";
        BooleanMetricValue value = new BooleanMetricValue(testname, false);
        assertThat(value.getBrowserText(), is(equalTo("No")));
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.metrics.BooleanMetricValue

Copyright © 2018 www.massapicom. 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.