This practical exercise will give you the opportunity to acquire practical experience of test driven development (TDD) in Java and working alongside another developer. You should leverage the collaboration tools within GitHub to assist you in completing this laboratory exercise.
- Decide on a team lead. The lead should:
1.1. Fork this repository.
1.2. Add the other team member(s) to the forked repository. - Examine the repository readme.md file and outline java classes Raygun and Alien. Allocate one of classes to be implemented to each team member. If the team has 3 members allocate the code to be developed appropriately.
- Each team member should clone a local copy of the group repository.
- Configure the local IntelliJ project for testing, if necessary.
- Based on the comments within each class:
5.1. Discuss with your team member(s) what unit tests should be written for each class.
5.2. Write a TestNG test class for the java class that was assigned to your team member, not your class!. - Implement the java class (Raygun.java or Alien.java) that was assigned to you.
- Test your implementation using the test suite developed by your team member in step 4.2. Fix your code implementation as necessary.
- Review your implementation of the class assigned to you (Raygun.java or Alien.java) and refactor the code based on the material covered in last weeks lecture.
- Re-run your test suite to ensure that you did not introduce any bugs when refactoring your code.
- Sign into the Microsoft Teams group and share two of the changes you made to the code base when refactoring your code. Add a quick explanation as to why you made those changes. Which of Fowler’s refactoring guidelines did you apply when refactoring the code?