listener.ancestorRemoved(null);
manifestation.removeAncestorListener(listener);
}
FrameFixture fixture = showInFrame(manifestation, "test");
JTableFixture tableFixture = fixture.table();
FeedProvider.RenderingInfo ri = new FeedProvider.RenderingInfo(
"1",
Color.gray,
"a",
Color.gray,
true
);
Mockito.when(provider.getRenderingInfo(Mockito.anyMap())).thenReturn(ri);
Map<String, String> dataInfo = new HashMap<String,String>();
dataInfo.put(FeedProvider.NORMALIZED_VALUE_KEY, "1");
dataInfo.put(FeedProvider.NORMALIZED_RENDERING_INFO, ri.toString());
Map<String, List<Map<String, String>>> data =
Collections.singletonMap(provider.getSubscriptionId(),
Collections.singletonList(dataInfo));
Field f1 = InfoViewManifestation.class.getField("tableModel");
f1.setAccessible(true);
Object view = f1.get(manifestation);
Field f2 = ValueModel.class.getField("eList");
f2.setAccessible(true);
f2.set(view, eList);
((ValueModel)view).clearModel();
manifestation.updateFromFeed(data);
JLabelFixture labelFixture = new Query().labelIn(fixture);
labelFixture.requireText("1");
JRadioButtonFixture buttonA = new Query().accessibleNameMatches("Alpha Value: ").radioButtonIn(fixture);
buttonA.check();
manifestation.updateFromFeed(data);
JTableCellFixture cell = tableFixture.cell(row(0).column(2));
JTableCellFixture cell2 = tableFixture.cell(row(1).column(2));
cell.requireValue("1");
cell2.requireValue("1");
buttonA.uncheck();
JRadioButtonFixture buttonI = new Query().accessibleNameMatches("Test Value: ").radioButtonIn(fixture);