diff --git a/src/test/java/com/sinch/xms/api/MtBatchBinarySmsResultTest.java b/src/test/java/com/sinch/xms/api/MtBatchBinarySmsResultTest.java index 0a04f8b..1101863 100644 --- a/src/test/java/com/sinch/xms/api/MtBatchBinarySmsResultTest.java +++ b/src/test/java/com/sinch/xms/api/MtBatchBinarySmsResultTest.java @@ -43,6 +43,8 @@ public void canSerializeMinimal() throws Exception { " 'from': '1234',", " 'to': [ '987654321' ],", " 'canceled': false,", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'id': '" + input.id() + "',", " 'body': 'SGVsbG8sIHdvcmxkIQ==',", " 'udh': '01020304'", @@ -69,6 +71,8 @@ private static MtBatchBinarySmsResult.Builder minimalBatchBuilder() { return new MtBatchBinarySmsResult.Builder() .sender("1234") .addRecipient("987654321") + .flashMessage(false) + .deliveryReport(ReportType.NONE) .body("Hello, world!".getBytes(TestUtils.US_ASCII)) .udh(new byte[] {1, 2, 3, 4}) .canceled(false) diff --git a/src/test/java/com/sinch/xms/api/MtBatchTextSmsResultTest.java b/src/test/java/com/sinch/xms/api/MtBatchTextSmsResultTest.java index 765fca2..f4f1834 100644 --- a/src/test/java/com/sinch/xms/api/MtBatchTextSmsResultTest.java +++ b/src/test/java/com/sinch/xms/api/MtBatchTextSmsResultTest.java @@ -45,6 +45,8 @@ public void canSerializeMinimal() throws Exception { " 'to': [ '987654321' ],", " 'body': 'Hello, world!',", " 'canceled': false,", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'id': '" + input.id() + "'", "}") .replace('\'', '"'); @@ -86,6 +88,8 @@ public void canSerializeWithParameters() throws Exception { " 'to': [ '987654321' ],", " 'body': 'Hello, world!',", " 'canceled': false,", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'id': '" + input.id() + "',", " 'parameters': {", " 'param1': {", @@ -142,6 +146,8 @@ public void canSerializeWithParametersAndDefault() throws Exception { " 'to': [ '987654321' ],", " 'body': 'Hello, world!',", " 'canceled': false,", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'id': '" + input.id() + "',", " 'parameters': {", " 'param1': {", @@ -182,6 +188,8 @@ private static MtBatchTextSmsResult.Builder minimalBatchBuilder() { return new MtBatchTextSmsResult.Builder() .sender("1234") .addRecipient("987654321") + .flashMessage(false) + .deliveryReport(ReportType.NONE) .body("Hello, world!") .canceled(false) .id(TestUtils.freshBatchId()); diff --git a/src/test/java/com/sinch/xms/api/PagedBatchResultTest.java b/src/test/java/com/sinch/xms/api/PagedBatchResultTest.java index 549f9ff..d1c243f 100644 --- a/src/test/java/com/sinch/xms/api/PagedBatchResultTest.java +++ b/src/test/java/com/sinch/xms/api/PagedBatchResultTest.java @@ -80,6 +80,8 @@ public void canSerializeJsonWithNonEmptyBatches() throws Exception { .id(batchId1) .createdAt(smsTime) .modifiedAt(smsTime) + .flashMessage(false) + .deliveryReport(ReportType.NONE) .build(); MtBatchSmsResult batchResult2 = @@ -88,6 +90,8 @@ public void canSerializeJsonWithNonEmptyBatches() throws Exception { .id(batchId2) .body("foobar".getBytes(TestUtils.US_ASCII)) .udh(new byte[] {1, 2, 3}) + .flashMessage(false) + .deliveryReport(ReportType.NONE) .build(); PagedBatchResult input = @@ -117,6 +121,8 @@ public void canSerializeJsonWithNonEmptyBatches() throws Exception { " 'canceled': false,", " 'id': '" + batchId1 + "',", " 'from': '12345',", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'created_at': " + smsTimeString + ",", " 'modified_at': " + smsTimeString + "", " },", @@ -131,6 +137,8 @@ public void canSerializeJsonWithNonEmptyBatches() throws Exception { " 'canceled': false,", " 'id': '" + batchId2 + "',", " 'from': '12345',", + " 'flash_message': false,", + " 'delivery_report': 'none',", " 'created_at': " + smsTimeString + ",", " 'modified_at': " + smsTimeString + "", " }", @@ -156,6 +164,8 @@ public void canDeserializeJsonWithNonEmptyBatches() throws Exception { .body("Hello, world!") .canceled(false) .id(batchId1) + .flashMessage(false) + .deliveryReport(ReportType.NONE) .createdAt(smsTime) .modifiedAt(smsTime) .build(); @@ -164,6 +174,8 @@ public void canDeserializeJsonWithNonEmptyBatches() throws Exception { new MtBatchBinarySmsResult.Builder() .using(batchResult1) .id(batchId2) + .flashMessage(false) + .deliveryReport(ReportType.NONE) .body("Hello, again!".getBytes()) .udh("udh".getBytes()) .build();