Package org.wicketstuff.jamon.monitor

Examples of org.wicketstuff.jamon.monitor.MonitorLabelPrefixSpecification


   
    private MonitorLabelPrefixSpecification specification;

    @Test
    public void shouldBeSatisfiedWhenMonitorStartWithLabelOfSpecification() {
        specification = new MonitorLabelPrefixSpecification("t");
        assertThat(specification.isSatisfiedBy(new TestMonitor("test1")), is(true));
        assertThat(specification.isSatisfiedBy(new TestMonitor("Test1")), is(true));
        assertThat(specification.isSatisfiedBy(new TestMonitor("monitor")), is(false));
    }
View Full Code Here


        super(id);
        final TextField monitorLabel = new TextField(ID_OF_MONITOR_LABEL, new Model());
        monitorLabel.add(new AjaxFormComponentUpdatingBehavior("onkeyup") {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                replaceJamonMonitorTable(monitorLabel, target, new MonitorLabelPrefixSpecification(monitorLabel.getValue()));
            }
        });
        add(monitorLabel);
        add(new AjaxButton(ID_OF_RESET_BUTTON) {
            @Override
View Full Code Here

TOP

Related Classes of org.wicketstuff.jamon.monitor.MonitorLabelPrefixSpecification

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.