@Test public void testItems_UponUpdate_AddItems() { TestTablePmo tablePmo = new TestTablePmo(); com.vaadin.v7.ui.Table table = new PmoBasedTableFactory(tablePmo, bindingContext).createTable(); com.vaadin.v7.data.Container.ItemSetChangeListener itemSetChangedListener = addItemSetChangeListener(bindingContext); assertThat(table.getItemIds(), is(empty())); TestRowPmo newRow = new TestRowPmo(); tablePmo.getItems().add(newRow); bindingContext.modelChanged(); assertThat(tablePmo.getItems(), contains(newRow)); assertThat(table.getItemIds(), contains(newRow)); verify(itemSetChangedListener).containerItemSetChange(any()); verifyNoMoreInteractions(itemSetChangedListener); }
@SuppressWarnings("deprecation") public com.vaadin.v7.ui.Table createTable() { return (com.vaadin.v7.ui.Table)CONTAINER_COMPONENT_FACTORY.createContainerComponent(containerPmo, bindingContext); }
PmoBasedTableFactory { @SuppressWarnings("deprecation") public com.vaadin.v7.ui.Table createTable() { return (com.vaadin.v7.ui.Table)CONTAINER_COMPONENT_FACTORY.createContainerComponent(containerPmo, bindingContext); } }
PmoBasedTableFactory { @SuppressWarnings("deprecation") public com.vaadin.v7.ui.Table createTable() { return (com.vaadin.v7.ui.Table)CONTAINER_COMPONENT_FACTORY.createContainerComponent(containerPmo, bindingContext); } PmoBasedTableFactory(ContainerPmo<?> containerPmo, BindingContext bindingContext); }
PmoBasedTableFactory { @SuppressWarnings("deprecation") public com.vaadin.v7.ui.Table createTable() { return (com.vaadin.v7.ui.Table)CONTAINER_COMPONENT_FACTORY.createContainerComponent(containerPmo, bindingContext); } PmoBasedTableFactory(ContainerPmo<?> containerPmo, BindingContext bindingContext); @SuppressWarnings("deprecation") com.vaadin.v7.ui.Table createTable(); }
PmoBasedTableFactory { @SuppressWarnings("deprecation") public com.vaadin.v7.ui.Table createTable() { return (com.vaadin.v7.ui.Table)CONTAINER_COMPONENT_FACTORY.createContainerComponent(containerPmo, bindingContext); } PmoBasedTableFactory(ContainerPmo<?> containerPmo, BindingContext bindingContext); @SuppressWarnings("deprecation") com.vaadin.v7.ui.Table createTable();  }