@Test public void testFooterUpdateAfterConstruction() { TableFooterPmo footerPmo = property -> property; TestTablePmo tablePmo = new TestTablePmo(footerPmo); com.vaadin.v7.ui.Table table = new PmoBasedTableFactory(tablePmo, bindingContext).createTable(); com.vaadin.v7.data.Container.ItemSetChangeListener itemSetChangedListener = addItemSetChangeListener(bindingContext); assertThat(table.isFooterVisible()); assertThat(table.getColumnFooter(TestRowPmo.PROPERTY_VALUE_1), is(TestRowPmo.PROPERTY_VALUE_1)); assertThat(table.getColumnFooter(TestRowPmo.PROPERTY_VALUE_2), is(TestRowPmo.PROPERTY_VALUE_2)); tablePmo.setFooterPmo(null); bindingContext.modelChanged(); assertThat(table.isFooterVisible(), is(false)); verifyNoMoreInteractions(itemSetChangedListener); tablePmo.setFooterPmo(property -> "test"); bindingContext.modelChanged(); assertThat(table.isFooterVisible()); assertThat(table.getColumnFooter(TestRowPmo.PROPERTY_VALUE_1), is("test")); 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();  }