Fix typos.
This commit is contained in:
parent
74aaab04a7
commit
36415b82c1
@ -132,7 +132,7 @@ public class MessageFactory
|
|||||||
* @throws IllegalArgumentException if there was something wrong with the
|
* @throws IllegalArgumentException if there was something wrong with the
|
||||||
* way we are trying to create the response.
|
* way we are trying to create the response.
|
||||||
*/
|
*/
|
||||||
public static Response create3482BindingResponse(
|
public static Response create3489BindingResponse(
|
||||||
TransportAddress mappedAddress,
|
TransportAddress mappedAddress,
|
||||||
TransportAddress sourceAddress,
|
TransportAddress sourceAddress,
|
||||||
TransportAddress changedAddress)
|
TransportAddress changedAddress)
|
||||||
|
|||||||
@ -272,7 +272,7 @@ class StunServerTransaction
|
|||||||
* @return <tt>true</tt> if this transaction is still retransmitting and
|
* @return <tt>true</tt> if this transaction is still retransmitting and
|
||||||
* false <tt>otherwise</tt>
|
* false <tt>otherwise</tt>
|
||||||
*/
|
*/
|
||||||
public boolean isReransmitting()
|
public boolean isRetransmitting()
|
||||||
{
|
{
|
||||||
return isRetransmitting;
|
return isRetransmitting;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -469,7 +469,7 @@ public class StunStack
|
|||||||
+ "(tid="+ tid.toString() +") "
|
+ "(tid="+ tid.toString() +") "
|
||||||
+ "object does not exist.");
|
+ "object does not exist.");
|
||||||
}
|
}
|
||||||
else if( sTran.isReransmitting())
|
else if( sTran.isRetransmitting())
|
||||||
{
|
{
|
||||||
throw new StunException(StunException.TRANSACTION_DOES_NOT_EXIST,
|
throw new StunException(StunException.TRANSACTION_DOES_NOT_EXIST,
|
||||||
"The transaction specified in the response "
|
"The transaction specified in the response "
|
||||||
|
|||||||
@ -100,7 +100,7 @@ public class MessageEventDispatchingTest extends TestCase
|
|||||||
stunStack.addSocket(serverSock2);
|
stunStack.addSocket(serverSock2);
|
||||||
|
|
||||||
bindingRequest = MessageFactory.createBindingRequest();
|
bindingRequest = MessageFactory.createBindingRequest();
|
||||||
bindingResponse = MessageFactory.create3482BindingResponse(
|
bindingResponse = MessageFactory.create3489BindingResponse(
|
||||||
clientAddress, clientAddress, serverAddress);
|
clientAddress, clientAddress, serverAddress);
|
||||||
|
|
||||||
requestCollector = new PlainRequestCollector();
|
requestCollector = new PlainRequestCollector();
|
||||||
|
|||||||
@ -89,7 +89,7 @@ public class TransactionSupportTests extends TestCase
|
|||||||
stunStack.addSocket(serverSock);
|
stunStack.addSocket(serverSock);
|
||||||
|
|
||||||
bindingRequest = MessageFactory.createBindingRequest();
|
bindingRequest = MessageFactory.createBindingRequest();
|
||||||
bindingResponse = MessageFactory.create3482BindingResponse(
|
bindingResponse = MessageFactory.create3489BindingResponse(
|
||||||
clientAddress, clientAddress, serverAddress);
|
clientAddress, clientAddress, serverAddress);
|
||||||
|
|
||||||
requestCollector = new PlainRequestCollector();
|
requestCollector = new PlainRequestCollector();
|
||||||
|
|||||||
@ -173,7 +173,7 @@ public class MessageFactoryTest extends TestCase
|
|||||||
bindingResponse.addAttribute(changedAddress);
|
bindingResponse.addAttribute(changedAddress);
|
||||||
|
|
||||||
Message expectedReturn = bindingResponse;
|
Message expectedReturn = bindingResponse;
|
||||||
Message actualReturn = MessageFactory.create3482BindingResponse(
|
Message actualReturn = MessageFactory.create3489BindingResponse(
|
||||||
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS,
|
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS,
|
||||||
MsgFixture.ADDRESS_ATTRIBUTE_PORT,
|
MsgFixture.ADDRESS_ATTRIBUTE_PORT,
|
||||||
Transport.UDP),
|
Transport.UDP),
|
||||||
|
|||||||
@ -221,7 +221,7 @@ public class ShallowStackTest extends TestCase
|
|||||||
Arrays.equals(expectedReturn, actualReturn));
|
Arrays.equals(expectedReturn, actualReturn));
|
||||||
|
|
||||||
//---------- create the response ---------------------------------------
|
//---------- create the response ---------------------------------------
|
||||||
Response bindingResponse = MessageFactory.create3482BindingResponse(
|
Response bindingResponse = MessageFactory.create3489BindingResponse(
|
||||||
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS,
|
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS,
|
||||||
MsgFixture.ADDRESS_ATTRIBUTE_PORT, Transport.UDP ),
|
MsgFixture.ADDRESS_ATTRIBUTE_PORT, Transport.UDP ),
|
||||||
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS_2,
|
new TransportAddress( MsgFixture.ADDRESS_ATTRIBUTE_ADDRESS_2,
|
||||||
|
|||||||
@ -108,10 +108,10 @@ public class StunAddressDiscovererTest
|
|||||||
public void testRecognizeSymmetricNat() throws Exception
|
public void testRecognizeSymmetricNat() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddressPort2,
|
mappedClientAddressPort2,
|
||||||
responseServerAddress,
|
responseServerAddress,
|
||||||
responseServerAddress);
|
responseServerAddress);
|
||||||
@ -144,10 +144,10 @@ public class StunAddressDiscovererTest
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse4 = null;
|
Response testIResponse4 = null;
|
||||||
|
|
||||||
@ -177,12 +177,12 @@ public class StunAddressDiscovererTest
|
|||||||
public void testRecognizeRestrictedCone() throws Exception
|
public void testRecognizeRestrictedCone() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse4 = MessageFactory.create3482BindingResponse(
|
Response testIResponse4 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
@ -212,9 +212,9 @@ public class StunAddressDiscovererTest
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
@ -242,7 +242,7 @@ public class StunAddressDiscovererTest
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
|
|
||||||
@ -272,9 +272,9 @@ public class StunAddressDiscovererTest
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
|
|||||||
@ -122,12 +122,12 @@ public class StunAddressDiscovererTest_v4v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v4,
|
mappedClientAddress_v4,
|
||||||
responseServerAddress_v6,
|
responseServerAddress_v6,
|
||||||
responseServerAddress_v6);
|
responseServerAddress_v6);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v4_Port2,
|
mappedClientAddress_v4_Port2,
|
||||||
responseServerAddress_v6,
|
responseServerAddress_v6,
|
||||||
responseServerAddress_v6);
|
responseServerAddress_v6);
|
||||||
@ -157,12 +157,12 @@ public class StunAddressDiscovererTest_v4v6 extends TestCase
|
|||||||
public void testRecognizeSymmetricNat_Local_v4_Public_v6() throws Exception
|
public void testRecognizeSymmetricNat_Local_v4_Public_v6() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v6,
|
mappedClientAddress_v6,
|
||||||
responseServerAddress_v4,
|
responseServerAddress_v4,
|
||||||
responseServerAddress_v4);
|
responseServerAddress_v4);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v6_Port2,
|
mappedClientAddress_v6_Port2,
|
||||||
responseServerAddress_v4,
|
responseServerAddress_v4,
|
||||||
responseServerAddress_v4);
|
responseServerAddress_v4);
|
||||||
@ -194,11 +194,11 @@ public class StunAddressDiscovererTest_v4v6 extends TestCase
|
|||||||
public void testRecognizeFullCone_Local_v6_Public_v4() throws Exception
|
public void testRecognizeFullCone_Local_v6_Public_v4() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v4,
|
mappedClientAddress_v4,
|
||||||
responseServerAddress_v6,
|
responseServerAddress_v6,
|
||||||
responseServerAddress_v6);
|
responseServerAddress_v6);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v4,
|
mappedClientAddress_v4,
|
||||||
responseServerAddress_v6,
|
responseServerAddress_v6,
|
||||||
responseServerAddress_v6);
|
responseServerAddress_v6);
|
||||||
@ -227,11 +227,11 @@ public class StunAddressDiscovererTest_v4v6 extends TestCase
|
|||||||
public void testRecognizeFullCone_Local_v4_Public_v6() throws Exception
|
public void testRecognizeFullCone_Local_v4_Public_v6() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v6,
|
mappedClientAddress_v6,
|
||||||
responseServerAddress_v4,
|
responseServerAddress_v4,
|
||||||
responseServerAddress_v4);
|
responseServerAddress_v4);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress_v6,
|
mappedClientAddress_v6,
|
||||||
responseServerAddress_v4,
|
responseServerAddress_v4,
|
||||||
responseServerAddress_v4);
|
responseServerAddress_v4);
|
||||||
|
|||||||
@ -108,10 +108,10 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddressPort2,
|
mappedClientAddressPort2,
|
||||||
responseServerAddress,
|
responseServerAddress,
|
||||||
responseServerAddress);
|
responseServerAddress);
|
||||||
@ -143,10 +143,10 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse4 = null;
|
Response testIResponse4 = null;
|
||||||
|
|
||||||
@ -178,12 +178,12 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
Response testIResponse3 = MessageFactory.create3482BindingResponse(
|
Response testIResponse3 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse4 = MessageFactory.create3482BindingResponse(
|
Response testIResponse4 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
@ -212,9 +212,9 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
public void testRecognizeFullCone() throws Exception
|
public void testRecognizeFullCone() throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
mappedClientAddress, responseServerAddress, responseServerAddress);
|
mappedClientAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
@ -242,7 +242,7 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = null;
|
Response testIResponse2 = null;
|
||||||
|
|
||||||
@ -271,9 +271,9 @@ public class StunAddressDiscovererTest_v6 extends TestCase
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
//define the server response sequence
|
//define the server response sequence
|
||||||
Response testIResponse1 = MessageFactory.create3482BindingResponse(
|
Response testIResponse1 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
Response testIResponse2 = MessageFactory.create3482BindingResponse(
|
Response testIResponse2 = MessageFactory.create3489BindingResponse(
|
||||||
discovererAddress, responseServerAddress, responseServerAddress);
|
discovererAddress, responseServerAddress, responseServerAddress);
|
||||||
|
|
||||||
responseServer.addMessage(testIResponse1);
|
responseServer.addMessage(testIResponse1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user