@@ -1484,10 +1484,10 @@ public synchronized void testDialNumberRejectBusyRcml() throws InterruptedExcept
1484
1484
assertTrue (bobCall .waitOutgoingCallResponse (5 * 1000 ));
1485
1485
assertEquals (Response .BUSY_HERE , bobCall .getLastReceivedResponse ().getStatusCode ());
1486
1486
}
1487
-
1487
+
1488
1488
private String dialClientWithActionRcml = "<Response><Dial action=\" http://127.0.0.1:8090/action\" method=\" GET\" ><Client>alice</Client></Dial></Response>" ;
1489
1489
private String hangupActionRcml = "<Response><Hangup /></Response>" ;
1490
-
1490
+
1491
1491
@ Test // (customised from testDialClientAliceWithRecordAndStatusCallbackForApp)
1492
1492
public synchronized void testDialClientAliceWithActionAndStatusCallbackForApp () throws InterruptedException , ParseException {
1493
1493
stubFor (get (urlPathEqualTo ("/1111" ))
@@ -1543,7 +1543,7 @@ public synchronized void testDialClientAliceWithActionAndStatusCallbackForApp()
1543
1543
Thread .sleep (3000 );
1544
1544
1545
1545
// hangup (must be as alice, the callee, hanging up in order to test the specific issue found)
1546
-
1546
+
1547
1547
aliceCall .disconnect ();
1548
1548
bobCall .listenForDisconnect ();
1549
1549
assertTrue (bobCall .waitForDisconnect (3 * 1000 ));
@@ -1559,9 +1559,9 @@ public synchronized void testDialClientAliceWithActionAndStatusCallbackForApp()
1559
1559
}
1560
1560
assertTrue (requests .size ()==3 );
1561
1561
}
1562
-
1562
+
1563
1563
private String dialTimeOutClientWithActionRcml = "<Response><Dial timeout=\" 3\" action=\" http://127.0.0.1:8090/action\" method=\" GET\" ><Client>alice</Client></Dial></Response>" ;
1564
-
1564
+
1565
1565
@ Test // (customised from testDialClientAliceWithRecordAndStatusCallbackForApp)
1566
1566
public synchronized void testDialTimeOutClientAliceWithActionAndStatusCallbackForApp () throws InterruptedException , ParseException {
1567
1567
stubFor (get (urlPathEqualTo ("/1111" ))
@@ -1609,7 +1609,6 @@ public synchronized void testDialTimeOutClientAliceWithActionAndStatusCallbackFo
1609
1609
1610
1610
assertTrue (aliceCall .waitForIncomingCall (3 * 1000 ));
1611
1611
assertTrue (aliceCall .sendIncomingCallResponse (Response .RINGING , "Ringing-Alice" , 3600 ));
1612
- String receivedBody = new String (aliceCall .getLastReceivedRequest ().getRawContent ());
1613
1612
1614
1613
aliceCall .listenForCancel ();
1615
1614
@@ -1618,7 +1617,7 @@ public synchronized void testDialTimeOutClientAliceWithActionAndStatusCallbackFo
1618
1617
assertTrue (aliceCall .respondToCancel (cancelTransaction , Response .OK , "Alice-OK-2-Cancel" , 3600 ));
1619
1618
1620
1619
// hangup (must be as alice, the callee, hanging up in order to test the specific issue found)
1621
-
1620
+
1622
1621
bobCall .listenForDisconnect ();
1623
1622
assertTrue (bobCall .waitForDisconnect (3 * 1000 ));
1624
1623
assertTrue (bobCall .respondToDisconnect ());
@@ -1631,7 +1630,7 @@ public synchronized void testDialTimeOutClientAliceWithActionAndStatusCallbackFo
1631
1630
for (LoggedRequest loggedRequest : requests ) {
1632
1631
logger .info ("Status callback received: " + loggedRequest .getUrl ());
1633
1632
}
1634
- assertTrue ( requests .size ()== 4 );
1633
+ assertEquals ( 4 , requests .size ());
1635
1634
}
1636
1635
1637
1636
@ Deployment (name = "TestDialVerbPartTwo" , managed = true , testable = false )
0 commit comments