@Test public void shouldThrowFieldNotFoundExceptionWithInvalidSenderCompID() throws FieldNotFound { mockMessageWithInvalidSenderCompIDHeader(); assertThatExceptionOfType(FieldNotFoundException.class) .isThrownBy(() -> quickFixJTemplate.send(message)) .withMessageContaining("Field with ID 49 not found in message"); }
@Override public boolean send(Message message) { Assert.notNull(message, "'message' must not be null"); SessionID sessionID = QuickFixJSessionID.quickFixJSessionIDBuilder() .message(message) .build().toSessionID(); return doSend(message, sessionID); }
QuickFixJTemplate implements QuickFixJOperations { @Override public boolean send(Message message) { Assert.notNull(message, "'message' must not be null"); SessionID sessionID = QuickFixJSessionID.quickFixJSessionIDBuilder() .message(message) .build().toSessionID(); return doSend(message, sessionID); } }
QuickFixJTemplate implements QuickFixJOperations { @Override public boolean send(Message message) { Assert.notNull(message, "'message' must not be null"); SessionID sessionID = QuickFixJSessionID.quickFixJSessionIDBuilder() .message(message) .build().toSessionID(); return doSend(message, sessionID); } QuickFixJTemplate();  QuickFixJTemplate(SessionLookupHandler sessionLookupHandler); }
QuickFixJTemplate implements QuickFixJOperations { @Override public boolean send(Message message) { Assert.notNull(message, "'message' must not be null"); SessionID sessionID = QuickFixJSessionID.quickFixJSessionIDBuilder() .message(message) .build().toSessionID(); return doSend(message, sessionID); } QuickFixJTemplate();  QuickFixJTemplate(SessionLookupHandler sessionLookupHandler); void setSessionLookupHandler(SessionLookupHandler sessionLookupHandler); void setDoValidation(boolean doValidation); @Override boolean send(Message message); @Override boolean send(Message message, String qualifier); @Override boolean send(Message message, String senderCompID, String targetCompID); @Override boolean send(Message message, String senderCompID, String targetCompID, String qualifier); @Override boolean send(Message message, SessionID sessionID); }
QuickFixJTemplate implements QuickFixJOperations { @Override public boolean send(Message message) { Assert.notNull(message, "'message' must not be null"); SessionID sessionID = QuickFixJSessionID.quickFixJSessionIDBuilder() .message(message) .build().toSessionID(); return doSend(message, sessionID); } QuickFixJTemplate();  QuickFixJTemplate(SessionLookupHandler sessionLookupHandler); void setSessionLookupHandler(SessionLookupHandler sessionLookupHandler); void setDoValidation(boolean doValidation); @Override boolean send(Message message); @Override boolean send(Message message, String qualifier); @Override boolean send(Message message, String senderCompID, String targetCompID); @Override boolean send(Message message, String senderCompID, String targetCompID, String qualifier); @Override boolean send(Message message, SessionID sessionID);  }