@@ -29,7 +29,7 @@ public void initTest(){
2929 controller = client .getWebRtcClient ().getAPIController ();
3030 }
3131
32- // Break this into multiple tests when we have a proper test environment and there aren't dependency issues
32+ // Break this into multiple tests when our test environment is more robust and there aren't dependency issues
3333 @ Test
3434 public void testWebRtcParticipantSessionManagement () throws Exception {
3535 // Create a participant
@@ -48,6 +48,7 @@ public void testWebRtcParticipantSessionManagement() throws Exception {
4848 assertNotNull ("Participant is null" , participantCreationResponse .getParticipant ());
4949 assertNotNull ("Participant ID is null" , participantCreationResponse .getParticipant ().getId ());
5050 assertFalse ("Participant ID is empty" , participantCreationResponse .getParticipant ().getId ().isEmpty ());
51+ assertEquals ("Participant ID is not 36 characters" , 36 , participantCreationResponse .getParticipant ().getId ().length ());
5152 assertEquals (
5253 "Publish Permissions do not match" ,
5354 participantCreationRequest .getPublishPermissions (),
@@ -75,6 +76,7 @@ public void testWebRtcParticipantSessionManagement() throws Exception {
7576 assertNotNull ("Participant is null" , participantFetchResponse );
7677 assertNotNull ("Participant ID is null" , participantFetchResponse .getId ());
7778 assertFalse ("Participant ID is empty" , participantFetchResponse .getId ().isEmpty ());
79+ assertEquals ("Participant ID is not 36 characters" , participantFetchResponse .getId ().length ());
7880 assertEquals (
7981 "Publish Permissions do not match" ,
8082 participantCreationRequest .getPublishPermissions (),
@@ -102,6 +104,7 @@ public void testWebRtcParticipantSessionManagement() throws Exception {
102104 Session sessionCreationResponse = sessionCreationApiResponse .getResult ();
103105 assertNotNull ("Session ID is null" , sessionCreationResponse .getId ());
104106 assertFalse ("Session ID is empty" , sessionCreationResponse .getId ().isEmpty ());
107+ assertEquals ("Session ID is not 36 characters" , sessionCreationResponse .getId ().length ());
105108 assertEquals ("Session Tags do not match" , sessionCreationRequest .getTag (), sessionCreationResponse .getTag ());
106109
107110 // Get a session
0 commit comments