Skip to content

A project (with unit tests and Main class) to be refactored: a silly car owner class that needs improvement. Maven project layout with POM including JUnit4 dependency.

Notifications You must be signed in to change notification settings

helmutneukirchen/HBV202GAssignment6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HBV202GAssignment6

A project with a silly car owner class that needs refactoring.

This project is a Maven project, i.e. it uses the standard Maven project structure that your IDE hopefully understands when you git clone it. The provided Maven POM includes the JUnit4 dependency.

Both the implementation and the tests are in Java package is.hi.hbv202g.ass6, but in the usual separate Maven src directories:

  • src/main/java: A class representing cars, another class representing a person who owns a car, and a Main class with a main method.

  • src/test/java: An Alltests test suite class, two furhter classes containing test cases for the car and the car owner class.

Maven:

  • mvn compile compiles all implementation classes.
  • mvn exec:java executes the main method of the implementation.
  • mvn test runs all test cases (i.e. all classes with a name that either starts with Test or ends with Test, Tests, or TestCase).

About

A project (with unit tests and Main class) to be refactored: a silly car owner class that needs improvement. Maven project layout with POM including JUnit4 dependency.

Resources

Stars

Watchers

Forks

Languages