I have been having an issue with debugging a JMockit/Reflected protected method. So when I debug I am able to enter the method from the test case via F5 to the first line, but when I try to progress any further inside the method it kicks me back to the test case
Why would it be doing this?
Everything is semantically correct but I am getting logic errors because of this
@SuppressWarnings("finally")
protected int removeESN() {
String thing= getSelectedX();
try {
List<String> things= db.getX();
if (things.size() == 0) {
msgHandler.displayErrorMessage(MessageHandler.NOT_FOUND,
"There are no things in the database.");
return MessageHandler.NOT_FOUND;
}
if(!thingisExistent(thing,things)){
msgHandler.displayErrorMessage(DepotMessageHandler.DOES_NOT_EXIST,
"Thing whose thing is '"+thing+
"' does not exist.");
return MessageHandler.DOES_NOT_EXIST;
}
int status = updateStatus(thing);
MessageHandler.SUCCESS:messageHandler.DATABASE_ERROR;
if(status == MessageHandler.SUCCESS){
msgHandler.displayMessage(status,"Thing"+thing+" was removed.");
} else{
msgHandler.displayMessage(status,"An error occurred while accessing the database");
}
return status;
}
Aucun commentaire:
Enregistrer un commentaire