QuestionQ21
Agile software development and Test TechniquesYou need to implement a Java class that validates a password-entry field. The validation criteria state that the password must:
- Be at least 8 characters long.
- Include at least one special character.
You are concentrating on validation criterion 1 and have written a test class verifying that a 7-character password entry fails validation.
You have written code intended to make this test class pass; however, it failed on the test class’s first execution.
What should you do next?
Community Discussion