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