Removed the deprecated tests

This commit is contained in:
Trustin Lee 2009-12-29 05:54:38 +00:00
parent 24b59bbfa9
commit 33766a1f4f
2 changed files with 0 additions and 16 deletions

View File

@ -21,7 +21,6 @@ import static org.junit.Assert.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.nio.charset.UnsupportedCharsetException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.NoSuchElementException;
@ -1535,13 +1534,6 @@ public abstract class AbstractChannelBufferTest {
@Test
public void testToString() {
try {
buffer.toString("UnsupportedCharsetName");
fail();
} catch (UnsupportedCharsetException e) {
// Expected
}
buffer.clear();
buffer.writeBytes(copiedBuffer("Hello, World!", CharsetUtil.ISO_8859_1));
assertEquals("Hello, World!", buffer.toString(CharsetUtil.ISO_8859_1));

View File

@ -21,7 +21,6 @@ import static org.junit.Assert.*;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ScatteringByteChannel;
import java.nio.charset.UnsupportedCharsetException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
@ -312,13 +311,6 @@ public class ChannelBuffersTest {
ByteBuffer.wrap(new byte[] { 1 }),
ByteBuffer.wrap(new byte[] { 2 }),
ByteBuffer.wrap(new byte[] { 3 })));
try {
copiedBuffer("", "UnsupportedCharset");
fail();
} catch (UnsupportedCharsetException e) {
// Expected
}
}
@Test