assertEquals(graphic, cell.getGraphic());
}
@Test
public void applyItemProviderColor() {
IItemColorProvider colorProvider = mock(IItemColorProvider.class);
Object item = new Object();
URI foregroundColorURI = URI.createURI("color://rgb/255/0/0");
URI backgroundColorURI = URI.createURI("color://rgb/0/255/0");
when(colorProvider.getForeground(item)).thenReturn(foregroundColorURI);
when(colorProvider.getBackground(item)).thenReturn(backgroundColorURI);
when(adapterFactory.adapt(item, IItemColorProvider.class)).thenReturn(colorProvider);
Cell<?> cell = new Cell<>();
cellFactory.applyItemProviderColor(item, cell, adapterFactory);