@Test void testMatches() { assertTrue(testSubject.matches(mock(GenericCommandMessage.class))); DefaultUnitOfWork.startAndGet(null); try { assertTrue(testSubject.matches(mock(Message.class))); assertTrue(testSubject.matches(mock(EventMessage.class))); assertTrue(testSubject.matches(mock(GenericEventMessage.class))); assertTrue(testSubject.matches(mock(GenericCommandMessage.class))); } finally { CurrentUnitOfWork.get().rollback(); } }
@Override public boolean matches(Message message) { return true; }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public boolean matches(Message message) { return true; } }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public boolean matches(Message message) { return true; }  }
CurrentUnitOfWorkParameterResolverFactory implements ParameterResolverFactory, ParameterResolver { @Override public boolean matches(Message message) { return true; }  @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 boolean matches(Message message) { return true; }  @Override ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex); @Override Object resolveParameterValue(Message message); @Override boolean matches(Message message);  }