FacebookService service = wrap(FacebookService.class);
queue(service.updateStatus(statusMessage)).schedule(nextMonday).after(new Callback
@Override
public Object run() {
System.out.println("Posted the status, and it was: " + getResult().getMessage());
}
});
The syntax is (supposed to be) similar to Mockito's. I'm not sure how well this approach will stand up from a thread-safety perspective, but I've started a project on Github, very basic right now, that I think has some promise!
No comments:
Post a Comment