@Test(expected=UnsupportedMessageType.class) public void testFallbackWithNoOverrid() throws Exception { quickfix.fixt11.Logon logon = new quickfix.fixt11.Logon(new EncryptMethod( EncryptMethod.NONE_OTHER), new HeartBtInt(30), new DefaultApplVerID(ApplVerID.FIX42)); MessageCracker cracker = new MessageCracker(); cracker.crack(logon, new SessionID(FixVersions.BEGINSTRING_FIXT11, "SENDER", "TARGET")); }
public void crack(quickfix.Message message, SessionID sessionID) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { Invoker invoker = invokers.get(message.getClass()); if (invoker != null) { try { invoker.Invoke(message, sessionID); } catch (InvocationTargetException ite) { try { throw ((InvocationTargetException)ite).getTargetException(); } catch (UnsupportedMessageType e) { throw e; } catch (FieldNotFound e) { throw e; } catch (IncorrectTagValue e) { throw e; } catch (Throwable t) { propagate(t); } } catch (Exception e) { propagate(e); } } else { onMessage(message, sessionID); } }
MessageCracker { public void crack(quickfix.Message message, SessionID sessionID) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { Invoker invoker = invokers.get(message.getClass()); if (invoker != null) { try { invoker.Invoke(message, sessionID); } catch (InvocationTargetException ite) { try { throw ((InvocationTargetException)ite).getTargetException(); } catch (UnsupportedMessageType e) { throw e; } catch (FieldNotFound e) { throw e; } catch (IncorrectTagValue e) { throw e; } catch (Throwable t) { propagate(t); } } catch (Exception e) { propagate(e); } } else { onMessage(message, sessionID); } } }
MessageCracker { public void crack(quickfix.Message message, SessionID sessionID) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { Invoker invoker = invokers.get(message.getClass()); if (invoker != null) { try { invoker.Invoke(message, sessionID); } catch (InvocationTargetException ite) { try { throw ((InvocationTargetException)ite).getTargetException(); } catch (UnsupportedMessageType e) { throw e; } catch (FieldNotFound e) { throw e; } catch (IncorrectTagValue e) { throw e; } catch (Throwable t) { propagate(t); } } catch (Exception e) { propagate(e); } } else { onMessage(message, sessionID); } } protected  MessageCracker();  MessageCracker(Object messageHandler); }
MessageCracker { public void crack(quickfix.Message message, SessionID sessionID) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { Invoker invoker = invokers.get(message.getClass()); if (invoker != null) { try { invoker.Invoke(message, sessionID); } catch (InvocationTargetException ite) { try { throw ((InvocationTargetException)ite).getTargetException(); } catch (UnsupportedMessageType e) { throw e; } catch (FieldNotFound e) { throw e; } catch (IncorrectTagValue e) { throw e; } catch (Throwable t) { propagate(t); } } catch (Exception e) { propagate(e); } } else { onMessage(message, sessionID); } } protected  MessageCracker();  MessageCracker(Object messageHandler); void initialize(Object messageHandler); void crack(quickfix.Message message, SessionID sessionID); }
MessageCracker { public void crack(quickfix.Message message, SessionID sessionID) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { Invoker invoker = invokers.get(message.getClass()); if (invoker != null) { try { invoker.Invoke(message, sessionID); } catch (InvocationTargetException ite) { try { throw ((InvocationTargetException)ite).getTargetException(); } catch (UnsupportedMessageType e) { throw e; } catch (FieldNotFound e) { throw e; } catch (IncorrectTagValue e) { throw e; } catch (Throwable t) { propagate(t); } } catch (Exception e) { propagate(e); } } else { onMessage(message, sessionID); } } protected  MessageCracker();  MessageCracker(Object messageHandler); void initialize(Object messageHandler); void crack(quickfix.Message message, SessionID sessionID);  }