@SuppressWarnings("deprecation") @Test public void testCreateSection_NoAnnotation() { NoAnnotationTablePmo containerPmo = new NoAnnotationTablePmo(); BindingContext bindingContext = new BindingContext(); PmoBasedSectionFactory factory = new PmoBasedSectionFactory(); AbstractSection tableSection = factory.createSection(containerPmo, bindingContext); assertThat(tableSection, is(notNullValue())); assertThat(tableSection.getComponentCount(), is(2)); assertThat(tableSection.getComponent(0).isVisible(), is(false)); assertThat(tableSection.getComponent(1), is(instanceOf(com.vaadin.v7.ui.Table.class))); com.vaadin.v7.ui.Table table = (com.vaadin.v7.ui.Table)tableSection.getComponent(1); assertThat(table.getContainerDataSource(), is(instanceOf(LinkkiInMemoryContainer.class))); LinkkiInMemoryContainer<?> container = (LinkkiInMemoryContainer<?>)table.getContainerDataSource(); assertThat(bindingContext, hasBindingWith(container)); }
@Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); @Deprecated TableSection createSection(); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); @Deprecated TableSection createSection();  }