public static class AsmTest.ClassSubject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
classFile
The content of the class to be tested.
|
Constructor and Description |
---|
ClassSubject(byte[] classFile) |
Modifier and Type | Method and Description |
---|---|
void |
contains(java.lang.String expectedString)
Asserts that a dump of the subject class into a string representation contains the given
string.
|
void |
isEqualTo(byte[] expectedClassFile)
Asserts that the subject class is equal to the given class, modulo some low level bytecode
representation details (e.g.
|
public void contains(java.lang.String expectedString)
expectedString
- a string which should be contained in a dump of the subject class.public void isEqualTo(byte[] expectedClassFile)
expectedClassFile
- a class file content which should be equal to the subject class.