You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello iam trying to mock my command for testing and iam having alot of problems so iam asking for a simple example for mocking command with mockito lets take this command from the your doc
classCommitCommandextendsCommand {
final name ="commit";
final description ="Record changes to the repository.";
// [run] may also return a Future.voidrun() {
if(commit()){
exist(0);
}else {
exist(1);
}
}
boolcommit() =>true;
}
how can i mock this and simulate if commit returned true or false simple example cause when iam trying to do it i faced alot of errors
The text was updated successfully, but these errors were encountered:
Hello iam trying to mock my command for testing and iam having alot of problems so iam asking for a simple example for mocking command with mockito lets take this command from the your doc
how can i mock this and simulate if commit returned true or false simple example cause when iam trying to do it i faced alot of errors
The text was updated successfully, but these errors were encountered: