Question: 1. Use Test-Driven Development ( JUni) to implement a password strength validator (Using Android Studio) Remember: - write a JUnit test first before implementing anything

1. Use Test-Driven Development (JUni) to implement a password strength validator (Using Android Studio)

Remember:

- write a JUnit test first before implementing anything new

- make small changes to make the test pass

- refactor

Stage 1:

At this stage there is no UI, just a class with a validate method that checks whether a string is a sufficiently strong password according to some set of rules, and returns the number of rules that the string passed.

Begin with implementing these 2 rules:

- it is not password (case insensitive)

- it is at least 8 characters long

Create a new GitHub Repository for your project, name it password-validator, push your code to a new branch a2-stage1

Stage 2:

Next, define and implement at least 3 more rules of your own choosing (e.g. requiring at least 1 special character, at least 1 digit, both upper and lower case).

The new rules should be pushed to a branch named a2-stage2

Please show the code for that and how to push your code to a new branch?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!