Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.3 kB
3
Indexable
Never
    @Test
    public void testGetStatusInProgress() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V0);
        e120ped.setPedBlo(false);
        E120pedIntegrationEntity errorIntegration = null;
        OrderStatus status = OrderStatus.IN_PROGRESS;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }
    
    @Test
    public void testGetStatusInvoiced() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V4);
        e120ped.setPedBlo(false);
        E120pedIntegrationEntity errorIntegration = null;
        OrderStatus status = OrderStatus.INVOICED;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }
    
    @Test
    public void testGetStatusCanceled() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V5);
        e120ped.setPedBlo(false);
        E120pedIntegrationEntity errorIntegration = null;
        OrderStatus status = OrderStatus.CANCELED;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }
    
    @Test
    public void testGetStatusNotPaid() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V1);
        e120ped.setPedBlo(true);
        E120pedIntegrationEntity errorIntegration = null;
        OrderStatus status = OrderStatus.NOT_PAID;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }
    
    @Test
    public void testGetStatusPaid() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V1);
        e120ped.setPedBlo(false);
        E120pedIntegrationEntity errorIntegration = null;
        OrderStatus status = OrderStatus.PAID;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }
    
    @Test
    public void testGetStatusError() {
        E120pedEntity e120ped = new E120pedEntity();
        e120ped.setSitPed(EnumSitPed.V3);
        e120ped.setPedBlo(false);
        E120pedIntegrationEntity errorIntegration = new E120pedIntegrationEntity();
        OrderStatus status = OrderStatus.ERROR;
        assertEquals(status, getStatus(e120ped, errorIntegration));
    }