Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

10.5. Testing the Model

Now that we’ve got the Presenter tests as well as the View tests well under way, it’s time to look at writing tests for the Model. The tests you’ll be writing for the Model will be somewhat similar to those you used to test the Presenter in that we’ll be testing the interaction between the Model and the RemoteService by utilizing mock objects and setting expectations on the executions performed on them. You’ll start as you did for the Presenter and View tests by creating the test class.

Listing 10.13. IssueModelTest.as


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial