DefaultDataDictionaryProvider implements DataDictionaryProvider { public DataDictionary getApplicationDataDictionary(ApplVerID applVerID) { return applicationDictionaries.computeIfAbsent(applVerID); } DefaultDataDictionaryProvider();  DefaultDataDictionaryProvider(boolean findDataDictionaries); DataDictionary getSessionDataDictionary(String beginString); DataDictionary getApplicationDataDictionary(ApplVerID applVerID); void addTransportDictionary(String beginString, DataDictionary dd); void addApplicationDictionary(ApplVerID applVerID, DataDictionary dataDictionary);  }
@Test public void throwExceptionIfAppDictionaryIsNotFound() throws Exception { DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider(); try { provider.getApplicationDataDictionary(new ApplVerID("Invalid_Test")); } catch (QFJException e) { assertThat(e.getMessage(), containsString("Unknown or unsupported ApplVerID")); } }
@Test public void throwExceptionIfAppVersionIsNotFound() throws Exception { DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider(); try { provider.getApplicationDataDictionary(new ApplVerID("999")); } catch (QFJException e) { assertThat(e.getMessage(), containsString(" 999")); } }
@Test public void testDataDictionaryForFIX50SP() throws Exception { DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider(); provider.getApplicationDataDictionary(new ApplVerID(FIX50SP1)); provider.getApplicationDataDictionary(new ApplVerID(FIX50SP2)); }