Package org.lightfish.business.appmonitoring.boundary

Source Code of org.lightfish.business.appmonitoring.boundary.ApplicationMonitoringIT

/*
*
*/
package org.lightfish.business.appmonitoring.boundary;

import javax.json.JsonObject;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.lightfish.business.appmonitoring.control.EJBStatisticsCollectorIT;

/**
*
* @author adam-bien.com
*/
public class ApplicationMonitoringIT {

    ApplicationMonitoring cut;

    @Before
    public void init() {
        this.cut = new ApplicationMonitoring();
        EJBStatisticsCollectorIT collector = new EJBStatisticsCollectorIT();
        collector.init();
        this.cut.collector = collector.getCut();
    }

    @Test
    public void getApplicationContainerStatisticsForLightfish() {
        JsonObject stats = cut.getApplicationContainerStatistics("lightfish");
        Assert.assertNotNull(stats);
        System.out.println("-- getApplicationContainerStatisticsForLightfish-- " + stats);
    }

    @Test
    public void getApplicationContainerStatistics() {
        JsonObject stats = cut.getApplicationsContainerStatistics();
        Assert.assertNotNull(stats);
        System.out.println("-- getApplicationContainerStatistics-- " + stats);
    }

    @Test
    public void getBeanStatistics() {
        JsonObject stats = cut.getBeanStatistics("lightfish");
        Assert.assertNotNull(stats);
        System.out.println("-- getBeanStatistics-- " + stats);
    }

    @Test
    public void getBeanStatisticsForBean() {
        JsonObject stats = cut.getBeanStatistics("lightfish", "AddScript");
        Assert.assertNotNull(stats);
        System.out.println("-- getBeanStatisticsForBean-- " + stats);
    }

}
TOP

Related Classes of org.lightfish.business.appmonitoring.boundary.ApplicationMonitoringIT

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.