Skip to content

LaunchCodeEducation/techjobs-oo-java-graded-17

Repository files navigation

TechJobs, OO Edition Autograded Rubric for Java 17

For this assignment, students are asked to refactor a version of the TechJobs Console assignment to make the code object-oriented and to add some unit testing.

Assignment Requirements:

  1. Review Sally’s code in the Employer class to learn how to assign a unique ID.
  2. Add getters, setters, and custom methods as needed to the Location, CoreCompetency, and PositionType classes.
  3. Complete the Job class using what you learned in steps 1 and 2.
  4. Use unit testing to verify the constructors and equals methods for the Job class.
  5. Use TDD to design and code a custom toString method for the Job class.
  6. Use inheritance to DRY the code within Employer, Location, CoreCompetency, and PositionType

Unit Tests

The starter code contains 6 unit test classes. Each class contains tests for each main task of the assignment. This allows students to run tests upon completion of a task before moving on to the next one.

  1. TestTaskTwo verifies that students completed the Location, CoreCompetency, and PositionType classes.
  2. TestTaskThree verifies that students created the jobClass and that it uses the other classes correctly to create job objects.
  3. TestTaskFour verifies students' unit tests exist within the application.
  4. TestTaskFive tests the unit tests the students created for their custom ToString method.
  5. TestTaskSix verifies that students used proper inheritance between Location, Employer, CoreCompetency, PositionType and JobField. For example, Employer should extend JobField. These tests focus on the existance of the extension rather than the behavior of the extension.
  6. AbstractTest verifies the behavior of the DRY code.

As you work on the components of the given tasks, continually re-run the tests to see the failing tests gradually turn to passing. When all tests within the file pass, you’re ready to move onto the next task.

Once you have completed the assignment, please follow the submission instructions at the bottom of this ReadMe.md

Appearance and Output:

Expected output from hardcoded job data:

ID: 1
Name: Product tester
Employer: ACME
Location: Desert
Position Type: Quality control
Core Competency: Persistence
 
 
ID: 2
Name: Web Developer
Employer: LaunchCode
Location: St. Louis
Position Type: Front-end developer
Core Competency: JavaScript
 
 
ID: 3
Name: Ice cream tester
Employer: Data not available
Location: Home
Position Type: UX
Core Competency: Tasting ability

Submitting Your Work

To submit your work please follow the Submission Instructions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages