Search in sources :

Example 1 with ManagementData

use of org.neo4j.jmx.impl.ManagementData in project neo4j by neo4j.

the class HighAvailabilityBeanTest method setup.

@Before
public void setup() throws NotCompliantMBeanException {
    fileSystem = new DefaultFileSystemAbstraction();
    kernelData = new TestHighlyAvailableKernelData();
    data = new ManagementData(bean, kernelData, ManagementSupport.load());
    when(db.getDependencyResolver()).thenReturn(dependencies);
    haBean = (HighAvailability) new HighAvailabilityBean().createMBean(data);
}
Also used : DefaultFileSystemAbstraction(org.neo4j.io.fs.DefaultFileSystemAbstraction) ManagementData(org.neo4j.jmx.impl.ManagementData) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DefaultFileSystemAbstraction (org.neo4j.io.fs.DefaultFileSystemAbstraction)1 ManagementData (org.neo4j.jmx.impl.ManagementData)1