diff --git a/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java b/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java index 111c9f8f..e94003bd 100644 --- a/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java +++ b/src/main/java/com/bandwidth/voice/bxml/verbs/Ring.java @@ -25,5 +25,5 @@ public class Ring implements Verb { * incoming call. Default value is 'true'. */ @XmlAttribute - private boolean answerCall; + private Boolean answerCall; } diff --git a/src/test/java/com/bandwidth/BxmlTest.java b/src/test/java/com/bandwidth/BxmlTest.java index cf83164b..d7586b4c 100644 --- a/src/test/java/com/bandwidth/BxmlTest.java +++ b/src/test/java/com/bandwidth/BxmlTest.java @@ -165,7 +165,7 @@ public void testNestedGatherMultipleVerbs() { assertEquals("BXML strings not equal", expected, response); } - + @Test public void testNestedGatherSingleVerb() { SpeakSentence speakSentence = SpeakSentence.builder() @@ -442,6 +442,16 @@ public void testRing() { assertEquals("BXML strings not equal", expected, response); } + @Test + public void testRingDefault() { + Ring ring = Ring.builder().build(); + String response = new Response().add(ring).toBXML(); + + String expected = ""; + + assertEquals("BXML strings not equal", expected, response); + } + @Test public void testStopGather() { StopGather stopGather = StopGather.builder().build();