@Test public void testFallbackUnitOfWork() { UnitOfWork unit = unitOfWorkManager.currentUnitOfWork(); assertThat(unit).isNotNull().isInstanceOf(PassThroughUnitOfWork.class); }
@Override public UnitOfWork currentUnitOfWork() { UnitOfWork unit = currentUnitOfWork.get(); if (unit == null) { return fallbackUnitOfWork; } return unit; }
DefaultUnitOfWorkManager implements UnitOfWorkManager { @Override public UnitOfWork currentUnitOfWork() { UnitOfWork unit = currentUnitOfWork.get(); if (unit == null) { return fallbackUnitOfWork; } return unit; } }
DefaultUnitOfWorkManager implements UnitOfWorkManager { @Override public UnitOfWork currentUnitOfWork() { UnitOfWork unit = currentUnitOfWork.get(); if (unit == null) { return fallbackUnitOfWork; } return unit; } DefaultUnitOfWorkManager(UnitOfWorkFactory factory);  DefaultUnitOfWorkManager(UnitOfWork fallbackUnitOfWork, UnitOfWorkFactory factory); }
DefaultUnitOfWorkManager implements UnitOfWorkManager { @Override public UnitOfWork currentUnitOfWork() { UnitOfWork unit = currentUnitOfWork.get(); if (unit == null) { return fallbackUnitOfWork; } return unit; } DefaultUnitOfWorkManager(UnitOfWorkFactory factory);  DefaultUnitOfWorkManager(UnitOfWork fallbackUnitOfWork, UnitOfWorkFactory factory); @Override UnitOfWork currentUnitOfWork(); @Override UnitOfWork newUnitOfWork(); @Override EventManager eventManager(); }
DefaultUnitOfWorkManager implements UnitOfWorkManager { @Override public UnitOfWork currentUnitOfWork() { UnitOfWork unit = currentUnitOfWork.get(); if (unit == null) { return fallbackUnitOfWork; } return unit; } DefaultUnitOfWorkManager(UnitOfWorkFactory factory);  DefaultUnitOfWorkManager(UnitOfWork fallbackUnitOfWork, UnitOfWorkFactory factory); @Override UnitOfWork currentUnitOfWork(); @Override UnitOfWork newUnitOfWork(); @Override EventManager eventManager();  }