Class AbstractComponentDataViewTest

java.lang.Object
com.vaadin.tests.dataprovider.AbstractComponentDataViewTest

public abstract class AbstractComponentDataViewTest extends Object
Abstract test class that contains the common tests for all generic data view component's implementations, i.e. which extends AbstractDataView and doesn't contain an in-memory or lazy specific API. Concrete implementations of this class should provide a particular component to be tested as a HasDataView implementation.
  • Field Details

    • items

      protected List<String> items
    • dataProvider

      protected com.vaadin.flow.data.provider.InMemoryDataProvider<String> dataProvider
    • dataView

      protected com.vaadin.flow.data.provider.DataView<String> dataView
    • component

      protected com.vaadin.flow.data.provider.HasDataView<String,?,? extends com.vaadin.flow.data.provider.DataView<String>> component
  • Constructor Details

    • AbstractComponentDataViewTest

      public AbstractComponentDataViewTest()
  • Method Details

    • init

      public void init()
    • getItems_noFiltersSet_allItemsObtained

      public void getItems_noFiltersSet_allItemsObtained()
    • getItems_filtersSet_filteredItemsObtained

      public void getItems_filtersSet_filteredItemsObtained()
    • getItems_sortingSet_sortedItemsObtained

      public void getItems_sortingSet_sortedItemsObtained()
    • addItemCountChangeListener_fireEvent_listenerNotified

      public void addItemCountChangeListener_fireEvent_listenerNotified()
    • getComponent

      protected abstract com.vaadin.flow.data.provider.HasDataView<String,?,? extends com.vaadin.flow.data.provider.DataView<String>> getComponent()