@Test public void shouldParseSimpleMessage() { final Message heartbeat = dictionary.messages().get(0); assertEquals("Heartbeat", heartbeat.name()); assertEquals('0', heartbeat.packedType()); assertEquals(ADMIN, heartbeat.category()); final Entry entry = heartbeat.entries().get(0); assertThat(entry, isRequiredField("TestReqID", false)); }
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);  }