@Test void testResolveParameterValue() { DefaultUnitOfWork.startAndGet(null); try { assertSame(CurrentUnitOfWork.get(), testSubject.resolveParameterValue(mock(GenericCommandMessage.class))); } finally { CurrentUnitOfWork.get().rollback(); } }
@Override public Object resolveParameterValue(Message message) { if (!CurrentUnitOfWork.isStarted()) { return null; } return CurrentUnitOfWork.get(); }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public Object resolveParameterValue(Message message) { if (!CurrentUnitOfWork.isStarted()) { return null; } return CurrentUnitOfWork.get(); } }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public Object resolveParameterValue(Message message) { if (!CurrentUnitOfWork.isStarted()) { return null; } return CurrentUnitOfWork.get(); }  }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public Object resolveParameterValue(Message message) { if (!CurrentUnitOfWork.isStarted()) { return null; } return CurrentUnitOfWork.get(); }  @Override ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex); @Override Object resolveParameterValue(Message message); @Override boolean matches(Message message); }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public Object resolveParameterValue(Message message) { if (!CurrentUnitOfWork.isStarted()) { return null; } return CurrentUnitOfWork.get(); }  @Override ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex); @Override Object resolveParameterValue(Message message); @Override boolean matches(Message message);  }