Writing Test Cases
Instructions

Complete the template below such that you will provide code to solve the following problems.
Write test cases in the template below to find the unknown bug in code that performs the following: a method called checkCode which will check if a string entered by the user is a valid item code or not. A valid item code will have the following characteristics:
  • It will start with an integer between 1 and 999 (without preceding zeros).
  • Next, a period will appear.
  • One or more words composed of letters, separated by spaces, will appear. Each word must be capitalized.
  • The last word is followed by one or more spaces.
  • Finally, the code will end with an optional five digit number.


    Follow the format of each test case according to the example: