Added tests
This commit is contained in:
parent
507b9d0b70
commit
dab76e266c
@ -144,6 +144,16 @@ public abstract class AbstractChannelBufferTest {
|
|||||||
buffer.readerIndex(0);
|
buffer.readerIndex(0);
|
||||||
buffer.writerIndex(CAPACITY);
|
buffer.writerIndex(CAPACITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(expected=IndexOutOfBoundsException.class)
|
||||||
|
public void getBooleanBoundaryCheck1() {
|
||||||
|
buffer.getBoolean(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected=IndexOutOfBoundsException.class)
|
||||||
|
public void getBooleanBoundaryCheck2() {
|
||||||
|
buffer.getBoolean(buffer.capacity());
|
||||||
|
}
|
||||||
|
|
||||||
@Test(expected=IndexOutOfBoundsException.class)
|
@Test(expected=IndexOutOfBoundsException.class)
|
||||||
public void getByteBoundaryCheck1() {
|
public void getByteBoundaryCheck1() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user