Examples of MonitorLabelSpecification


Examples of org.wicketstuff.jamon.monitor.MonitorLabelSpecification

public class MonitorLabelSpecificationTest {
    private MonitorLabelSpecification specification;

    @Test
    public void shouldBeSatisfiedIfLabelIsSame() {
        specification = new MonitorLabelSpecification("mon1");
        assertThat(specification.isSatisfiedBy(new TestMonitor("mon1")), is(true));
        assertThat(specification.isSatisfiedBy(new TestMonitor("Mon1")), is(false));
        assertThat(specification.isSatisfiedBy(new TestMonitor("mon2")), is(false));
    }
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.