テスト・ジェネレーターで新規注釈タイプを処理できるようにするには、以下のようにします。
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;
}
}