@Test(expected = ObjectToIdMappingException.class) public void failsWhenMetaDataShouldBeRetrivedForAPropertyThatHasNoKnownMetaData() { cut.getMetaDataOrFail(list1); }
public ListPropertyMetaData getMetaDataOrFail(final List<?> list) { final ListPropertyMetaData metaData = listToData.get(list); if (metaData == null) { throw new ObjectToIdMappingException("Meta data for an unknown property was requested. " + "The clients may no longer be synchron."); } return metaData; }
ListPropertyMetaDataStore { public ListPropertyMetaData getMetaDataOrFail(final List<?> list) { final ListPropertyMetaData metaData = listToData.get(list); if (metaData == null) { throw new ObjectToIdMappingException("Meta data for an unknown property was requested. " + "The clients may no longer be synchron."); } return metaData; } }
ListPropertyMetaDataStore { public ListPropertyMetaData getMetaDataOrFail(final List<?> list) { final ListPropertyMetaData metaData = listToData.get(list); if (metaData == null) { throw new ObjectToIdMappingException("Meta data for an unknown property was requested. " + "The clients may no longer be synchron."); } return metaData; } ListPropertyMetaDataStore(final WeakObjectRegistry objectRegistry); }
ListPropertyMetaDataStore { public ListPropertyMetaData getMetaDataOrFail(final List<?> list) { final ListPropertyMetaData metaData = listToData.get(list); if (metaData == null) { throw new ObjectToIdMappingException("Meta data for an unknown property was requested. " + "The clients may no longer be synchron."); } return metaData; } ListPropertyMetaDataStore(final WeakObjectRegistry objectRegistry); ListPropertyMetaData getMetaDataOrFail(final List<?> list); ListPropertyMetaData getMetaDataOrFail(final UUID listId); void storeMetaDataOrFail(final List<?> list, final ListPropertyMetaData metaData); boolean hasMetaDataFor(final List<?> list); }
ListPropertyMetaDataStore { public ListPropertyMetaData getMetaDataOrFail(final List<?> list) { final ListPropertyMetaData metaData = listToData.get(list); if (metaData == null) { throw new ObjectToIdMappingException("Meta data for an unknown property was requested. " + "The clients may no longer be synchron."); } return metaData; } ListPropertyMetaDataStore(final WeakObjectRegistry objectRegistry); ListPropertyMetaData getMetaDataOrFail(final List<?> list); ListPropertyMetaData getMetaDataOrFail(final UUID listId); void storeMetaDataOrFail(final List<?> list, final ListPropertyMetaData metaData); boolean hasMetaDataFor(final List<?> list);  }