protected abstract Domain getDomain();
+ protected abstract boolean closeHandlers();
+
protected abstract void sendEventsToLoggers();
/**
public void testTeardown() {
session.close();
- handlerA.close();
- handlerB.close();
- handlerC.close();
+ if (closeHandlers()) {
+ handlerA.close();
+ handlerB.close();
+ handlerC.close();
+ }
handlerA = null;
handlerB = null;