• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 27. Principal Annotations > Step 4: Testing the Adapter

Step 4: Testing the Adapter

Before you use the Web interface to test the view, you need to first write a test for the adapter to ensure the correct functioning. The most difficult part about the unit tests in this case is actually setting up the environment, including defining and registering a principal annotation service. You will implement the test as a doc test in the PrincipalInformation class' doc string, where all code doc test snippets in this section should be placed.

You need to set up the environment.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint