@Test
public void testRegisterUnregisterHandlers()
{
GraphDatabaseService graphDb = new EmbeddedGraphDatabase( PATH );
KernelEventHandler handler1 = new DummyKernelEventHandler( RESOURCE1 )
{
public ExecutionOrder orderComparedTo( KernelEventHandler other )
{
return ExecutionOrder.DOESNT_MATTER;
}
};
KernelEventHandler handler2 = new DummyKernelEventHandler( RESOURCE2 )
{
public ExecutionOrder orderComparedTo( KernelEventHandler other )
{
return ExecutionOrder.DOESNT_MATTER;
}