Search in sources :

Example 1 with ModuleFactory

use of org.eclipse.wst.server.core.internal.ModuleFactory in project webtools.servertools by eclipse.

the class ModuleFactoriesExtensionTestCase method testModuleFactoriesExtension.

public void testModuleFactoriesExtension() throws Exception {
    Dimension[] dims = new Dimension[] { Dimension.ELAPSED_PROCESS, Dimension.USED_JAVA_HEAP };
    tagAsGlobalSummary("Module Factories", dims);
    startMeasuring();
    ModuleFactory[] factories = ServerPlugin.getModuleFactories();
    if (factories != null) {
        for (ModuleFactory factory : factories) factory.getModules(null);
    }
    stopMeasuring();
    commitMeasurements();
    assertPerformance();
}
Also used : ModuleFactory(org.eclipse.wst.server.core.internal.ModuleFactory) Dimension(org.eclipse.test.performance.Dimension)

Aggregations

Dimension (org.eclipse.test.performance.Dimension)1 ModuleFactory (org.eclipse.wst.server.core.internal.ModuleFactory)1