Search in sources :

Example 1 with CanFulfillForMeEntryDto

use of org.openlmis.stockmanagement.web.stockcardsummariesv2.CanFulfillForMeEntryDto in project openlmis-stockmanagement by OpenLMIS.

the class StockCardSummaryV2DtoTest method shouldGetNullStockOnHandIfCanFulfillForMeIsNullOrEmpty.

@Test
public void shouldGetNullStockOnHandIfCanFulfillForMeIsNullOrEmpty() {
    StockCardSummaryV2Dto stockCard = new StockCardSummaryV2DtoDataBuilder().withCanFulfillForMe((Set<CanFulfillForMeEntryDto>) null).build();
    assertEquals(null, stockCard.getStockOnHand());
    stockCard = new StockCardSummaryV2DtoDataBuilder().build();
    assertEquals(null, stockCard.getStockOnHand());
}
Also used : Set(java.util.Set) StockCardSummaryV2Dto(org.openlmis.stockmanagement.web.stockcardsummariesv2.StockCardSummaryV2Dto) StockCardSummaryV2DtoDataBuilder(org.openlmis.stockmanagement.testutils.StockCardSummaryV2DtoDataBuilder) Test(org.junit.Test)

Example 2 with CanFulfillForMeEntryDto

use of org.openlmis.stockmanagement.web.stockcardsummariesv2.CanFulfillForMeEntryDto in project openlmis-stockmanagement by OpenLMIS.

the class CanFulfillForMeEntryDtoTest method shouldImplementToString.

@Test
public void shouldImplementToString() {
    CanFulfillForMeEntryDto params = new CanFulfillForMeEntryDtoDataBuilder().build();
    ToStringTestUtils.verify(CanFulfillForMeEntryDto.class, params);
}
Also used : CanFulfillForMeEntryDtoDataBuilder(org.openlmis.stockmanagement.testutils.CanFulfillForMeEntryDtoDataBuilder) CanFulfillForMeEntryDto(org.openlmis.stockmanagement.web.stockcardsummariesv2.CanFulfillForMeEntryDto) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 Set (java.util.Set)1 CanFulfillForMeEntryDtoDataBuilder (org.openlmis.stockmanagement.testutils.CanFulfillForMeEntryDtoDataBuilder)1 StockCardSummaryV2DtoDataBuilder (org.openlmis.stockmanagement.testutils.StockCardSummaryV2DtoDataBuilder)1 CanFulfillForMeEntryDto (org.openlmis.stockmanagement.web.stockcardsummariesv2.CanFulfillForMeEntryDto)1 StockCardSummaryV2Dto (org.openlmis.stockmanagement.web.stockcardsummariesv2.StockCardSummaryV2Dto)1