Skip to content

Commit d20a6c3

Browse files
committed
Update Conference TwiML Test
1 parent c1209d1 commit d20a6c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/com/twilio/twiml/ConferenceTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.twilio.twiml;
22

3+
import com.google.common.collect.Lists;
34
import org.junit.Assert;
45
import org.junit.Test;
56

@@ -18,11 +19,14 @@ public void testXml() throws TwiMLException {
1819
.beep(Conference.Beep.FALSE)
1920
.record(Conference.Record.DO_NOT_RECORD)
2021
.trim(Trim.DO_NOT_TRIM)
22+
.statusCallback("http://twilio.com")
23+
.statusCallbackEvents(Lists.newArrayList(Conference.ConferenceEvent.END, Conference.ConferenceEvent.JOIN))
24+
.statusCallbackMethod(Method.GET)
2125
.waitMethod(Method.POST)
2226
.waitUrl("http://twilio.ca")
2327
.build();
2428

25-
Assert.assertEquals("<Conference muted=\"true\" startConferenceOnEnter=\"true\" endConferenceOnExit=\"false\" maxParticipants=\"10\" beep=\"false\" record=\"do-not-record\" trim=\"do-not-trim\" waitMethod=\"POST\" waitUrl=\"http://twilio.ca\">my conference</Conference>", conference.toXml());
29+
Assert.assertEquals("<Conference muted=\"true\" startConferenceOnEnter=\"true\" endConferenceOnExit=\"false\" maxParticipants=\"10\" beep=\"false\" record=\"do-not-record\" trim=\"do-not-trim\" waitMethod=\"POST\" waitUrl=\"http://twilio.ca\" statusCallbackEvent=\"end join\" statusCallbackMethod=\"GET\" statusCallback=\"http://twilio.com\">my conference</Conference>", conference.toXml());
2630
}
2731

2832
@Test

0 commit comments

Comments
 (0)