public abstract class AbstractPacketTest
extends org.bouncycastle.util.test.SimpleTest
Constructor and Description |
---|
AbstractPacketTest() |
Modifier and Type | Method and Description |
---|---|
void |
isEncodingEqual(byte[] first,
byte[] second)
Test, whether the first byte array and the second byte array are identical.
|
void |
isEncodingEqual(ContainedPacket first,
ContainedPacket second)
Test, whether the encoding of the first and second packet are identical.
|
void |
isEncodingEqual(java.lang.String message,
byte[] first,
byte[] second)
Test, whether the first byte array and the second byte array are identical.
|
void |
isEncodingEqual(java.lang.String message,
ContainedPacket first,
ContainedPacket second)
Test, whether the encoding of the first and second packet are identical.
|
void |
isFalse(boolean value)
Test, whether the value is false.
|
void |
isFalse(java.lang.String message,
boolean value)
Test, whether the value is false.
|
void |
isNotNull(java.lang.Object value)
Test, whether the value is not null.
|
void |
isNotNull(java.lang.String message,
java.lang.Object value)
Test, whether the value is not null.
|
void |
isNull(java.lang.Object value)
Test, whether the value is null.
|
void |
isNull(java.lang.String message,
java.lang.Object value)
Test, whether the value is null.
|
public void isEncodingEqual(byte[] first, byte[] second)
first
- first arraysecond
- second arraypublic void isEncodingEqual(java.lang.String message, byte[] first, byte[] second)
message
- error message to prepend to the hex dumpfirst
- first arraysecond
- second arraypublic void isEncodingEqual(ContainedPacket first, ContainedPacket second) throws java.io.IOException
first
- first packetsecond
- second packetjava.io.IOException
public void isEncodingEqual(java.lang.String message, ContainedPacket first, ContainedPacket second) throws java.io.IOException
message
- error message to prepend to the hex dumpfirst
- first packetsecond
- second packetjava.io.IOException
public void isFalse(boolean value)
value
- valuepublic void isFalse(java.lang.String message, boolean value)
message
- custom error messagevalue
- valuepublic void isNull(java.lang.Object value)
value
- valuepublic void isNull(java.lang.String message, java.lang.Object value)
message
- custom error messagevalue
- valuepublic void isNotNull(java.lang.Object value)
value
- valuepublic void isNotNull(java.lang.String message, java.lang.Object value)
message
- custom error messagevalue
- value