Search in sources :

Example 6 with JsonUtils

use of com.googlecode.jmxtrans.util.JsonUtils in project jmxtrans by jmxtrans.

the class ConfigurationParserTest method configureParser.

@Before
public void configureParser() {
    JsonUtils jsonUtils = createInjector(new JmxTransConfiguration()).getInstance(JsonUtils.class);
    configurationParser = new ConfigurationParser(jsonUtils);
}
Also used : JmxTransConfiguration(com.googlecode.jmxtrans.cli.JmxTransConfiguration) JsonUtils(com.googlecode.jmxtrans.util.JsonUtils) Before(org.junit.Before)

Aggregations

JmxTransConfiguration (com.googlecode.jmxtrans.cli.JmxTransConfiguration)6 JsonUtils (com.googlecode.jmxtrans.util.JsonUtils)6 JmxProcess (com.googlecode.jmxtrans.model.JmxProcess)5 File (java.io.File)5 Injector (com.google.inject.Injector)4 JmxTransformer (com.googlecode.jmxtrans.JmxTransformer)3 Test (org.junit.Test)2 IntegrationTest (com.googlecode.jmxtrans.test.IntegrationTest)1 Before (org.junit.Before)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1