So ermöglichen Sie einem Testgenerator die Verarbeitung eines neuen Anmerkungstyps:
if (packet instanceof IRecorderAnnotationPacket) {
IRecorderAnnotationPacket p = (IRecorderAnnotationPacket) packet;
RecorderAnnotation annotation = getContext().resolveAnnotation(p);
if (annotation == null) return true;
if (MY_ANNOTATION_TYPE.equals(annotation.getType())) {
// Add code to process the annotation
return true;
}
}