File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
main/java/com/bandwidth/voice/bxml/verbs Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ public class Ring implements Verb {
2525 * incoming call. Default value is 'true'.
2626 */
2727 @ XmlAttribute
28- private boolean answerCall ;
28+ private Boolean answerCall ;
2929}
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public void testNestedGatherMultipleVerbs() {
165165
166166 assertEquals ("BXML strings not equal" , expected , response );
167167 }
168-
168+
169169 @ Test
170170 public void testNestedGatherSingleVerb () {
171171 SpeakSentence speakSentence = SpeakSentence .builder ()
@@ -442,6 +442,16 @@ public void testRing() {
442442 assertEquals ("BXML strings not equal" , expected , response );
443443 }
444444
445+ @ Test
446+ public void testRingDefault () {
447+ Ring ring = Ring .builder ().build ();
448+ String response = new Response ().add (ring ).toBXML ();
449+
450+ String expected = "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?><Response><Ring/></Response>" ;
451+
452+ assertEquals ("BXML strings not equal" , expected , response );
453+ }
454+
445455 @ Test
446456 public void testStopGather () {
447457 StopGather stopGather = StopGather .builder ().build ();
You can’t perform that action at this time.
0 commit comments