I have such error message
java.lang.IllegalStateException: Invalid place to record expectations
On this method
private void expectNextNotExist() throws SQLException {
new Expectations() {
{
resultSet.next();
returns(false);
times = 1;
}
};
}
Where resultSet
is java.sql.ResultSet
. I have found some similar issues, but they didn't help me. I'm using Junit 4
, Jmockit 1.11
. How should I rewrite this method?
Aucun commentaire:
Enregistrer un commentaire