@Test (dataProvider = "feedProviders") public void testUpdateFeedProviders(AbstractComponent[][] comps, Set<String> expectedTS, Set<String> expectedTF) { AbstractComponent comp = generateMockGrandparent(comps); PlotViewManifestation view = Mockito.mock(PlotViewManifestation.class); Mockito.when(view.getManifestedComponent()).thenReturn(comp); Mockito.when(view.getViewProperties()).thenReturn(new ExtendedProperties()); int compCount = 0; for (AbstractComponent[] compArray : comps) { compCount += compArray.length; for (AbstractComponent c : compArray) { FeedProvider fp = c.getCapability(FeedProvider.class); Mockito.when(view.getFeedProvider(c)).thenReturn(fp); } } PlotDataAssigner pda = new PlotDataAssigner(view); pda.informFeedProvidersHaveChanged(); Assert.assertEquals(pda.getVisibleFeedProviders().size(), compCount); }
private void updateFeedProviders() { AbstractComponent[][] matrix = PlotViewPolicy.getPlotComponents( plotViewManifestation.getManifestedComponent(), useOrdinalPosition()); updateFeedProviders(matrix); }
PlotDataAssigner { private void updateFeedProviders() { AbstractComponent[][] matrix = PlotViewPolicy.getPlotComponents( plotViewManifestation.getManifestedComponent(), useOrdinalPosition()); updateFeedProviders(matrix); } }
PlotDataAssigner { private void updateFeedProviders() { AbstractComponent[][] matrix = PlotViewPolicy.getPlotComponents( plotViewManifestation.getManifestedComponent(), useOrdinalPosition()); updateFeedProviders(matrix); } PlotDataAssigner(PlotViewManifestation supportedPlotViewManifestation); }
PlotDataAssigner { private void updateFeedProviders() { AbstractComponent[][] matrix = PlotViewPolicy.getPlotComponents( plotViewManifestation.getManifestedComponent(), useOrdinalPosition()); updateFeedProviders(matrix); } PlotDataAssigner(PlotViewManifestation supportedPlotViewManifestation);  }
PlotDataAssigner { private void updateFeedProviders() { AbstractComponent[][] matrix = PlotViewPolicy.getPlotComponents( plotViewManifestation.getManifestedComponent(), useOrdinalPosition()); updateFeedProviders(matrix); } PlotDataAssigner(PlotViewManifestation supportedPlotViewManifestation);   }