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();
}
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();
}
Aggregations