James, thanks tremendously for pointing me to these websites; they were very helpful. I think I understand what's going on in this code, but I'd like to ask a few questions to make sure I understand it. In the first bit of code I saw:
It looks like this is defining account to be a mock, and then in the next line the code is telling it that whenever account.passwordMatches() is called with any parameter, it should return true. Is that accurate?
Later in that same method I see:
It looks like this is an attempt to verify that setLoggedIn(), called on object account, will return true. Is that right? What does the times(1) do?