@Test public void findByItemIdWithNullAsId() { Throwable actual = thrownBy( () -> itemUiMap.findByItemId( null ) ); assertThat( actual ) .hasMessageContaining( ID_MUST_NOT_BE_NULL ) .isInstanceOf( IllegalArgumentException.class ); }
public ItemUi<T> findByItemId( String id ) { checkArgument( id != null, ID_MUST_NOT_BE_NULL ); checkArgument( containsItemUi( id ), UNKNOWN_ITEM_UI_ENTRY, id ); return itemUis.get( id ); }
ItemUiMap { public ItemUi<T> findByItemId( String id ) { checkArgument( id != null, ID_MUST_NOT_BE_NULL ); checkArgument( containsItemUi( id ), UNKNOWN_ITEM_UI_ENTRY, id ); return itemUis.get( id ); } }
ItemUiMap { public ItemUi<T> findByItemId( String id ) { checkArgument( id != null, ID_MUST_NOT_BE_NULL ); checkArgument( containsItemUi( id ), UNKNOWN_ITEM_UI_ENTRY, id ); return itemUis.get( id ); } ItemUiMap( Timeline<T> timeline, ItemUiFactory<T, U> itemUiFactory ); }
ItemUiMap { public ItemUi<T> findByItemId( String id ) { checkArgument( id != null, ID_MUST_NOT_BE_NULL ); checkArgument( containsItemUi( id ), UNKNOWN_ITEM_UI_ENTRY, id ); return itemUis.get( id ); } ItemUiMap( Timeline<T> timeline, ItemUiFactory<T, U> itemUiFactory ); boolean containsItemUi( String id ); ItemUi<T> findByItemId( String id ); boolean isTimelineEmpty(); void fetch( FetchOperation operation ); void update( U uiContext ); }
ItemUiMap { public ItemUi<T> findByItemId( String id ) { checkArgument( id != null, ID_MUST_NOT_BE_NULL ); checkArgument( containsItemUi( id ), UNKNOWN_ITEM_UI_ENTRY, id ); return itemUis.get( id ); } ItemUiMap( Timeline<T> timeline, ItemUiFactory<T, U> itemUiFactory ); boolean containsItemUi( String id ); ItemUi<T> findByItemId( String id ); boolean isTimelineEmpty(); void fetch( FetchOperation operation ); void update( U uiContext );  }