8
8
9
9
package com .bandwidth .sdk .unit .models .bxml ;
10
10
11
- import com .bandwidth .sdk .model .CallDirectionEnum ;
12
11
import com .bandwidth .sdk .model .bxml .Bxml ;
13
12
import com .bandwidth .sdk .model .bxml .StartStream ;
14
13
import com .bandwidth .sdk .model .bxml .StreamParam ;
14
+ import com .bandwidth .sdk .model .bxml .TracksEnum ;
15
15
16
16
import jakarta .xml .bind .JAXBContext ;
17
17
import jakarta .xml .bind .JAXBException ;
@@ -38,7 +38,7 @@ public class StartStreamVerbTest {
38
38
StartStream startStream = StartStream .builder ()
39
39
.name ("stream1" )
40
40
.mode ("unidirectional" )
41
- .tracks (CallDirectionEnum . INBOUND )
41
+ .tracks (TracksEnum . inbound )
42
42
.destination ("testurl.com" )
43
43
.streamEventUrl ("eventurl.com" )
44
44
.streamEventMethod ("POST" )
@@ -50,7 +50,7 @@ public class StartStreamVerbTest {
50
50
@ Test
51
51
public void startStreamVerbWorks () throws JAXBException {
52
52
JAXBContext jaxbContext = JAXBContext .newInstance (Bxml .class );
53
- String expectedBxml = "<?xml version=\" 1.0\" encoding=\" UTF-8\" standalone=\" yes\" ?><Bxml><StartStream name=\" stream1\" mode=\" unidirectional\" tracks=\" INBOUND \" destination=\" testurl.com\" streamEventUrl=\" eventurl.com\" streamEventMethod=\" POST\" username=\" user\" password=\" pass\" ><StreamParam name=\" name1\" value=\" value1\" /><StreamParam name=\" name2\" value=\" value2\" /></StartStream></Bxml>" ;
53
+ String expectedBxml = "<?xml version=\" 1.0\" encoding=\" UTF-8\" standalone=\" yes\" ?><Bxml><StartStream name=\" stream1\" mode=\" unidirectional\" tracks=\" inbound \" destination=\" testurl.com\" streamEventUrl=\" eventurl.com\" streamEventMethod=\" POST\" username=\" user\" password=\" pass\" ><StreamParam name=\" name1\" value=\" value1\" /><StreamParam name=\" name2\" value=\" value2\" /></StartStream></Bxml>" ;
54
54
55
55
assertThat (new Bxml ().with (startStream ).toBxml (jaxbContext ), is (expectedBxml ));
56
56
}
0 commit comments