}
@Test
public void test() {
try {
JdProcessExceptionHandler jdProcessExceptionHandler = new JdProcessExceptionHandler();
for(int i=1; i<20; i++) {
try {
generateTimeout();
}
catch(Exception e) {
String processId = "0";
CAS cas = null;
Properties properties = null;
jdProcessExceptionHandler.handle(processId, cas, e, properties);
}
}
for(int i=1; i<4; i++) {
try {
generateError();
}
catch(Exception e) {
String processId = "1";
CAS cas = null;
Properties properties = null;
jdProcessExceptionHandler.handle(processId, cas, e, properties);
}
}
for(int i=1; i<13; i++) {
try {
generateError();
}
catch(Exception e) {
String processId = "2";
CAS cas = null;
Properties properties = null;
jdProcessExceptionHandler.handle(processId, cas, e, properties);
}
}
}
catch(Exception e) {
e.printStackTrace();