From 36415b82c1718502d61f1c8e9b76d5046429d31d Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 13 May 2011 08:45:13 +0000 Subject: [PATCH] Fix typos. --- src/org/ice4j/message/MessageFactory.java | 2 +- .../ice4j/stack/StunServerTransaction.java | 2 +- src/org/ice4j/stack/StunStack.java | 2 +- .../ice4j/MessageEventDispatchingTest.java | 2 +- test/org/ice4j/TransactionSupportTests.java | 2 +- .../org/ice4j/message/MessageFactoryTest.java | 2 +- test/org/ice4j/stack/ShallowStackTest.java | 2 +- .../stunclient/StunAddressDiscovererTest.java | 24 +++++++++---------- .../StunAddressDiscovererTest_v4v6.java | 16 ++++++------- .../StunAddressDiscovererTest_v6.java | 24 +++++++++---------- 10 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/org/ice4j/message/MessageFactory.java b/src/org/ice4j/message/MessageFactory.java index 46b60a9..0239759 100644 --- a/src/org/ice4j/message/MessageFactory.java +++ b/src/org/ice4j/message/MessageFactory.java @@ -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) diff --git a/src/org/ice4j/stack/StunServerTransaction.java b/src/org/ice4j/stack/StunServerTransaction.java index e35c0cc..bd3a3cd 100644 --- a/src/org/ice4j/stack/StunServerTransaction.java +++ b/src/org/ice4j/stack/StunServerTransaction.java @@ -272,7 +272,7 @@ class StunServerTransaction * @return true if this transaction is still retransmitting and * false otherwise */ - public boolean isReransmitting() + public boolean isRetransmitting() { return isRetransmitting; } diff --git a/src/org/ice4j/stack/StunStack.java b/src/org/ice4j/stack/StunStack.java index ee0169c..5156dc8 100644 --- a/src/org/ice4j/stack/StunStack.java +++ b/src/org/ice4j/stack/StunStack.java @@ -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 " diff --git a/test/org/ice4j/MessageEventDispatchingTest.java b/test/org/ice4j/MessageEventDispatchingTest.java index db81262..d9b0c99 100644 --- a/test/org/ice4j/MessageEventDispatchingTest.java +++ b/test/org/ice4j/MessageEventDispatchingTest.java @@ -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(); diff --git a/test/org/ice4j/TransactionSupportTests.java b/test/org/ice4j/TransactionSupportTests.java index 615a917..bb7b267 100644 --- a/test/org/ice4j/TransactionSupportTests.java +++ b/test/org/ice4j/TransactionSupportTests.java @@ -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(); diff --git a/test/org/ice4j/message/MessageFactoryTest.java b/test/org/ice4j/message/MessageFactoryTest.java index 8bfeb18..d26fcd2 100644 --- a/test/org/ice4j/message/MessageFactoryTest.java +++ b/test/org/ice4j/message/MessageFactoryTest.java @@ -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), diff --git a/test/org/ice4j/stack/ShallowStackTest.java b/test/org/ice4j/stack/ShallowStackTest.java index b313ee8..edaa12f 100644 --- a/test/org/ice4j/stack/ShallowStackTest.java +++ b/test/org/ice4j/stack/ShallowStackTest.java @@ -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, diff --git a/test/org/ice4j/stunclient/StunAddressDiscovererTest.java b/test/org/ice4j/stunclient/StunAddressDiscovererTest.java index 5167e21..0522b61 100644 --- a/test/org/ice4j/stunclient/StunAddressDiscovererTest.java +++ b/test/org/ice4j/stunclient/StunAddressDiscovererTest.java @@ -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); diff --git a/test/org/ice4j/stunclient/StunAddressDiscovererTest_v4v6.java b/test/org/ice4j/stunclient/StunAddressDiscovererTest_v4v6.java index ff9201a..ca5a359 100644 --- a/test/org/ice4j/stunclient/StunAddressDiscovererTest_v4v6.java +++ b/test/org/ice4j/stunclient/StunAddressDiscovererTest_v4v6.java @@ -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); diff --git a/test/org/ice4j/stunclient/StunAddressDiscovererTest_v6.java b/test/org/ice4j/stunclient/StunAddressDiscovererTest_v6.java index c57d53a..0b0a637 100644 --- a/test/org/ice4j/stunclient/StunAddressDiscovererTest_v6.java +++ b/test/org/ice4j/stunclient/StunAddressDiscovererTest_v6.java @@ -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);