@Test public void shouldParseEnumFieldWhereDescriptionIsNotAValidJavaIdentifierAtStart() { final Field msgType = field("ClearingFeeIndicator"); assertNotNull("Hasn't found ClearingFeeIndicator", msgType); assertEquals("ClearingFeeIndicator", msgType.name()); assertEquals(635, msgType.number()); assertEquals(STRING, msgType.type()); final List<Value> values = msgType.values(); assertEquals(new Value("H", "_106H_AND_106J_FIRMS"), values.get(4)); assertEquals(new Value("1", "_1ST_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(8)); assertEquals(new Value("2", "_2ND_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(9)); assertEquals(new Value("3", "_3RD_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(10)); assertEquals(new Value("4", "_4TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(11)); assertEquals(new Value("5", "_5TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(12)); assertEquals(new Value("9", "_6TH_YEAR_AND_BEYOND_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT"), values.get(13)); }
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);  }