@Test public void shouldParseEnumField() { final Field msgType = field("MsgType"); assertNotNull("Hasn't found MsgType", msgType); assertEquals("MsgType", msgType.name()); assertEquals(35, msgType.number()); assertEquals(STRING, msgType.type()); final List<Value> values = msgType.values(); assertEquals(new Value("0", "HEARTBEAT"), values.get(0)); assertEquals(new Value("8", "EXECUTION_REPORT"), values.get(1)); assertEquals(new Value("D", "ORDER_SINGLE"), values.get(2)); }
private String name(final NamedNodeMap attributes) { return getValue(attributes, "name"); }
DictionaryParser { private String name(final NamedNodeMap attributes) { return getValue(attributes, "name"); } }
DictionaryParser { private String name(final NamedNodeMap attributes) { return getValue(attributes, "name"); } DictionaryParser(final boolean allowDuplicates); }
DictionaryParser { private String name(final NamedNodeMap attributes) { return getValue(attributes, "name"); } DictionaryParser(final boolean allowDuplicates); Dictionary parse(final InputStream in, final Dictionary fixtDictionary); }
DictionaryParser { private String name(final NamedNodeMap attributes) { return getValue(attributes, "name"); } DictionaryParser(final boolean allowDuplicates); Dictionary parse(final InputStream in, final Dictionary fixtDictionary);  }