Search in sources :

Example 1 with MaterialCockpitFilters

use of de.metas.ui.web.material.cockpit.filters.MaterialCockpitFilters in project metasfresh-webui-api by metasfresh.

the class MaterialCockpitFiltersTest method createQuery_when_emptyFilters_then_retrieve_nothing.

@Test
public void createQuery_when_emptyFilters_then_retrieve_nothing() {
    final I_X_MRP_ProductInfo_Detail_MV record = newInstance(I_X_MRP_ProductInfo_Detail_MV.class);
    save(record);
    final IQuery<I_MD_Cockpit> query = new MaterialCockpitFilters().createQuery(ImmutableList.of());
    assertThat(query).isNotNull();
    assertThat(query.list()).isEmpty();
}
Also used : MaterialCockpitFilters(de.metas.ui.web.material.cockpit.filters.MaterialCockpitFilters) I_MD_Cockpit(de.metas.material.cockpit.model.I_MD_Cockpit) I_X_MRP_ProductInfo_Detail_MV(de.metas.fresh.model.I_X_MRP_ProductInfo_Detail_MV) Test(org.junit.Test)

Aggregations

I_X_MRP_ProductInfo_Detail_MV (de.metas.fresh.model.I_X_MRP_ProductInfo_Detail_MV)1 I_MD_Cockpit (de.metas.material.cockpit.model.I_MD_Cockpit)1 MaterialCockpitFilters (de.metas.ui.web.material.cockpit.filters.MaterialCockpitFilters)1 Test (org.junit.Test)1