@@ -0,0 +1,1796 @@
+package org.jsmpp.util;%0A%0Aimport static org.testng.Assert.*;%0Aimport org.jsmpp.bean.DeliveryReceipt;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A * @author uudashr%0A *%0A */%0Apublic class DeliveryReceiptParserTest %7B%0A    private PDUDecomposer decomposer = new DefaultDecomposer();%0A    private static final String ORIGINAL_MESSAGE = %22testing jsmpp bow%22;%0A    %0A    @Test%0A    public void parseTextWithLowerCase() %7B%0A        try %7B%0A            DeliveryReceipt delReceipt = decomposer.deliveryReceipt(%22id:0123456789 sub:001 dlvrd:001 submit date:200809011130 done date:200809011131 stat:DELIVRD err:000 text:%22 + ORIGINAL_MESSAGE);%0A            assertEquals(delReceipt.getText(), ORIGINAL_MESSAGE);%0A        %7D catch (InvalidDeliveryReceiptException e) %7B%0A            fail(%22Failed parsing delivery receipt:%22 + e.getMessage());%0A        %7D%0A    %7D%0A    %0A    @Test%0A    public void parsingTextWithUpperCase() %7B%0A        try %7B%0A            DeliveryReceipt delReceipt = decomposer.deliveryReceipt(%22id:0123456789 sub:001 dlvrd:001 submit date:200809011130 done date:200809011131 stat:DELIVRD err:000 Text:%22 + ORIGINAL_MESSAGE);%0A            assertEquals(delReceipt.getText(), ORIGINAL_MESSAGE);%0A        %7D catch (InvalidDeliveryReceiptException e) %7B%0A            fail(%22Failed parsing delivery receipt:%22 + e.getMessage());%0A        %7D%0A    %7D%0A    %0A    @Test%0A    public void parseWithNoTextAttribute() %7B%0A        try %7B%0A            DeliveryReceipt delReceipt = decomposer.deliveryReceipt(%22id:0123456789 sub:001 dlvrd:001 submit date:200809011130 done date:200809011131 stat:DELIVRD err:000 %22 + ORIGINAL_MESSAGE);%0A            assertEquals(delReceipt.getText(), null);%0A        %7D catch (InvalidDeliveryReceiptException e) %7B%0A            e.printStackTrace();%0A            fail(%22Failed parsing delivery receipt:%22 + e.getMessage());%0A        %7D%0A    %7D%0A%7D%0A

Add delivery receipt test case