@Test public void testDidSendMessage() { assertFalse(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.HEARTBEAT, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.ALERT, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.CLIENT_HELLO, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.FINISHED, trace)); trace.addTlsAction(sHeartbeat); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.HEARTBEAT, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.ALERT, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.CLIENT_HELLO, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.FINISHED, trace)); trace.addTlsAction(sAlertMessage); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.HEARTBEAT, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.ALERT, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.CLIENT_HELLO, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.FINISHED, trace)); trace.addTlsAction(sClientHello); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.HEARTBEAT, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.ALERT, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.CLIENT_HELLO, trace)); assertFalse(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.FINISHED, trace)); trace.addTlsAction(sFinishedMessage); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.HEARTBEAT, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(ProtocolMessageType.ALERT, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.CLIENT_HELLO, trace)); assertTrue(WorkflowTraceUtil.didSendMessage(HandshakeMessageType.FINISHED, trace)); }
public static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace) { return getFirstSendMessage(type, trace) != null; }
WorkflowTraceUtil { public static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace) { return getFirstSendMessage(type, trace) != null; } }
WorkflowTraceUtil { public static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace) { return getFirstSendMessage(type, trace) != null; } private  WorkflowTraceUtil(); }
WorkflowTraceUtil { public static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace) { return getFirstSendMessage(type, trace) != null; } private  WorkflowTraceUtil(); static ProtocolMessage getFirstReceivedMessage(ProtocolMessageType type, WorkflowTrace trace); static HandshakeMessage getFirstReceivedMessage(HandshakeMessageType type, WorkflowTrace trace); static HandshakeMessage getLastReceivedMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastReceivedMessage(ProtocolMessageType type, WorkflowTrace trace); static AbstractRecord getLastReceivedRecord(WorkflowTrace trace); static ProtocolMessage getFirstSendMessage(ProtocolMessageType type, WorkflowTrace trace); static ExtensionMessage getFirstSendExtension(ExtensionType type, WorkflowTrace trace); static List<HandshakeMessage> getAllSendHandshakeMessages(WorkflowTrace trace); static List<HandshakeMessage> getAllReceivedHandshakeMessages(WorkflowTrace trace); static List<ExtensionMessage> getAllSendExtensions(WorkflowTrace trace); static List<ExtensionMessage> getAllReceivedExtensions(WorkflowTrace trace); static HandshakeMessage getFirstSendMessage(HandshakeMessageType type, WorkflowTrace trace); static HandshakeMessage getLastSendMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastSendMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didReceiveMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didReceiveMessage(HandshakeMessageType type, WorkflowTrace trace); static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didSendMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastReceivedMessage(WorkflowTrace trace); static List<HandshakeMessage> filterHandshakeMessagesFromList(List<ProtocolMessage> messages); static List<ProtocolMessage> getAllReceivedMessages(WorkflowTrace trace); static List<ProtocolMessage> getAllReceivedMessages(WorkflowTrace trace, ProtocolMessageType type); static List<ProtocolMessage> getAllSendMessages(WorkflowTrace trace); static Boolean didReceiveTypeBeforeType(ProtocolMessageType protocolMessageType, HandshakeMessageType type,
            WorkflowTrace trace); static List<AbstractRecord> getAllReceivedRecords(WorkflowTrace trace); static List<AbstractRecord> getAllSendRecords(WorkflowTrace trace); static SendingAction getLastSendingAction(WorkflowTrace trace); }
WorkflowTraceUtil { public static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace) { return getFirstSendMessage(type, trace) != null; } private  WorkflowTraceUtil(); static ProtocolMessage getFirstReceivedMessage(ProtocolMessageType type, WorkflowTrace trace); static HandshakeMessage getFirstReceivedMessage(HandshakeMessageType type, WorkflowTrace trace); static HandshakeMessage getLastReceivedMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastReceivedMessage(ProtocolMessageType type, WorkflowTrace trace); static AbstractRecord getLastReceivedRecord(WorkflowTrace trace); static ProtocolMessage getFirstSendMessage(ProtocolMessageType type, WorkflowTrace trace); static ExtensionMessage getFirstSendExtension(ExtensionType type, WorkflowTrace trace); static List<HandshakeMessage> getAllSendHandshakeMessages(WorkflowTrace trace); static List<HandshakeMessage> getAllReceivedHandshakeMessages(WorkflowTrace trace); static List<ExtensionMessage> getAllSendExtensions(WorkflowTrace trace); static List<ExtensionMessage> getAllReceivedExtensions(WorkflowTrace trace); static HandshakeMessage getFirstSendMessage(HandshakeMessageType type, WorkflowTrace trace); static HandshakeMessage getLastSendMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastSendMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didReceiveMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didReceiveMessage(HandshakeMessageType type, WorkflowTrace trace); static boolean didSendMessage(ProtocolMessageType type, WorkflowTrace trace); static boolean didSendMessage(HandshakeMessageType type, WorkflowTrace trace); static ProtocolMessage getLastReceivedMessage(WorkflowTrace trace); static List<HandshakeMessage> filterHandshakeMessagesFromList(List<ProtocolMessage> messages); static List<ProtocolMessage> getAllReceivedMessages(WorkflowTrace trace); static List<ProtocolMessage> getAllReceivedMessages(WorkflowTrace trace, ProtocolMessageType type); static List<ProtocolMessage> getAllSendMessages(WorkflowTrace trace); static Boolean didReceiveTypeBeforeType(ProtocolMessageType protocolMessageType, HandshakeMessageType type,
            WorkflowTrace trace); static List<AbstractRecord> getAllReceivedRecords(WorkflowTrace trace); static List<AbstractRecord> getAllSendRecords(WorkflowTrace trace); static SendingAction getLastSendingAction(WorkflowTrace trace);  }