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

Chapter 26. New Principal-Source Plug-ins > Step 2: Writing the Tests

Step 2: Writing the Tests

At this point you need to write some unit tests to ensure that the file parser does its job correctly. But first you need to develop a small data file with which you can test the plug-in. You need to create a file called passwd.sample and add the following two principal entries to it:

01 foo1:bar1:Foo Bar 1
02 foo2:bar2:Foo Bar 2


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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