Search in sources :

Example 1 with I_X_MRP_ProductInfo_Detail_MV

use of de.metas.fresh.model.I_X_MRP_ProductInfo_Detail_MV 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)

Example 2 with I_X_MRP_ProductInfo_Detail_MV

use of de.metas.fresh.model.I_X_MRP_ProductInfo_Detail_MV in project metasfresh-webui-api by metasfresh.

the class MaterialCockpitRowRepositoryTest method retrieveRows_when_emptyFilters_then_return_nothing.

@Test
public void retrieveRows_when_emptyFilters_then_return_nothing() {
    final I_X_MRP_ProductInfo_Detail_MV record = newInstance(I_X_MRP_ProductInfo_Detail_MV.class);
    save(record);
    final IRowsData<MaterialCockpitRow> result = materialCockpitRowRepository.createRowsData(ImmutableList.of());
    assertThat(result.getDocumentId2AllRows()).isEmpty();
    assertThat(result.getDocumentId2TopLevelRows()).isEmpty();
    assertThat(result.getTableRecordReference2rows().asMap()).isEmpty();
}
Also used : 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)2 Test (org.junit.Test)2 I_MD_Cockpit (de.metas.material.cockpit.model.I_MD_Cockpit)1 MaterialCockpitFilters (de.metas.ui.web.material.cockpit.filters.MaterialCockpitFilters)1