Fixes warnings in test/.
This commit is contained in:
parent
579782bb0a
commit
5dd7a39257
@ -7,17 +7,14 @@
|
|||||||
package org.ice4j.attribute;
|
package org.ice4j.attribute;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
import junit.framework.*;
|
import junit.framework.*;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We have already tested individual decode methods, so our job here
|
* We have already tested individual decode methods, so our job here
|
||||||
* is to verify that that AttributeDecoder.decode distributes the right way.
|
* is to verify that that AttributeDecoder.decode distributes the right way.
|
||||||
*/
|
*/
|
||||||
public class AttributeDecoderTest extends TestCase {
|
public class AttributeDecoderTest extends TestCase {
|
||||||
private AttributeDecoder attributeDecoder = null;
|
|
||||||
private MsgFixture msgFixture;
|
private MsgFixture msgFixture;
|
||||||
private byte[] expectedAttributeValue = null;
|
private byte[] expectedAttributeValue = null;
|
||||||
|
|
||||||
@ -28,7 +25,6 @@ public class AttributeDecoderTest extends TestCase {
|
|||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
|
||||||
attributeDecoder = new AttributeDecoder();
|
|
||||||
msgFixture = new MsgFixture();
|
msgFixture = new MsgFixture();
|
||||||
|
|
||||||
//init a sample body
|
//init a sample body
|
||||||
@ -43,7 +39,6 @@ public class AttributeDecoderTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
attributeDecoder = null;
|
|
||||||
msgFixture.tearDown();
|
msgFixture.tearDown();
|
||||||
|
|
||||||
msgFixture = null;
|
msgFixture = null;
|
||||||
@ -118,7 +113,6 @@ public class AttributeDecoderTest extends TestCase {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void testDecodeErrorCode()
|
public void testDecodeErrorCode()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
@ -186,8 +180,4 @@ public class AttributeDecoderTest extends TestCase {
|
|||||||
expectedReturn, actualReturn);
|
expectedReturn, actualReturn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
public class ChangeRequestAttributeTest extends TestCase {
|
public class ChangeRequestAttributeTest extends TestCase {
|
||||||
private ChangeRequestAttribute changeRequestAttribute = null;
|
private ChangeRequestAttribute changeRequestAttribute = null;
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the nonce attribute class.
|
* Tests the nonce attribute class.
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emil Ivov
|
* @author Emil Ivov
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the realm attribute class.
|
* Tests the realm attribute class.
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the software attribute class.
|
* Tests the software attribute class.
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
public class UnknownAttributesAttributeTest extends TestCase {
|
public class UnknownAttributesAttributeTest extends TestCase {
|
||||||
private UnknownAttributesAttribute unknownAttributesAttribute = null;
|
private UnknownAttributesAttribute unknownAttributesAttribute = null;
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import junit.framework.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import org.ice4j.*;
|
import org.ice4j.*;
|
||||||
import org.ice4j.attribute.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emil Ivov
|
* @author Emil Ivov
|
||||||
|
|||||||
@ -16,7 +16,6 @@ import org.ice4j.attribute.*;
|
|||||||
public class MessageTest extends TestCase {
|
public class MessageTest extends TestCase {
|
||||||
private Message bindingRequest = null;
|
private Message bindingRequest = null;
|
||||||
private Message bindingResponse = null;
|
private Message bindingResponse = null;
|
||||||
private Message bindingErrorResponse = null;
|
|
||||||
|
|
||||||
private MappedAddressAttribute mappedAddress = null;
|
private MappedAddressAttribute mappedAddress = null;
|
||||||
private SourceAddressAttribute sourceAddress = null;
|
private SourceAddressAttribute sourceAddress = null;
|
||||||
@ -24,9 +23,6 @@ public class MessageTest extends TestCase {
|
|||||||
|
|
||||||
private ChangeRequestAttribute changeRequest = null;
|
private ChangeRequestAttribute changeRequest = null;
|
||||||
|
|
||||||
private ErrorCodeAttribute errorCodeAttribute = null;
|
|
||||||
private UnknownAttributesAttribute unknownAttributesAttribute = null;
|
|
||||||
|
|
||||||
private MsgFixture msgFixture;
|
private MsgFixture msgFixture;
|
||||||
|
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
@ -76,13 +72,10 @@ public class MessageTest extends TestCase {
|
|||||||
{
|
{
|
||||||
bindingRequest = null;
|
bindingRequest = null;
|
||||||
bindingResponse = null;
|
bindingResponse = null;
|
||||||
bindingErrorResponse = null;
|
|
||||||
mappedAddress = null;
|
mappedAddress = null;
|
||||||
sourceAddress = null;
|
sourceAddress = null;
|
||||||
changedAddress = null;
|
changedAddress = null;
|
||||||
changeRequest = null;
|
changeRequest = null;
|
||||||
errorCodeAttribute = null;
|
|
||||||
unknownAttributesAttribute = null;
|
|
||||||
changeRequest = null;
|
changeRequest = null;
|
||||||
|
|
||||||
msgFixture.tearDown();
|
msgFixture.tearDown();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user