@Test public void shouldSendMessageWithSenderAndTargetAndQualifier() throws FieldNotFound { mockMessage(expectedBeginString, expectedSender, expectedTarget); mockSessionFound(); SessionID expectedSessionID = new SessionID(expectedBeginString, expectedSender, expectedTarget, expectedQualifier); given(session.send(message)).willReturn(true); boolean sent = quickFixJTemplate.send(message, expectedSender, expectedTarget, expectedQualifier); assertThat(sent).isTrue(); assertSessionID(expectedSessionID); assertMessageSent(expectedSender, expectedTarget); }
@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);  }