This course has already ended.

⌛⌛⌛ JUnit tests for order

This task concerns implementing fairly comprehensive JUnit tests for the Order class and its inner classes Item and Entry. Documentation for these classes is provided in the apidocs subdirectory of the round11\junitorder directory of the remote material repository.

The nature of this task is somewhat similar to test-driven development, where test developers do not have access to the actual tested implementation and the tests are developed based on, for example, API documentation.

In order to be able to implement and test the JUnit tests, you might need to implement at least partly the Order class, which naturally also entails the inner classes Item and Entry.

Organise your code using the Maven directory structure. Place your JUnit test class into the round11\junitorder\src\test\java\fi\tuni\prog3\junitorder directory. If you implement Order and its inner classes, place those files in round11\junitorder\src\main\java\fi\tuni\prog3\junitorder directory.

Testing

The automated tests first execute your JUnit tests for correct implementations of Order, Order.Item and Order.Entry. The JUnit tests are then executed also for 20 different incorrect implementations. If your JUnit tests do not claim to find errors from the correct implementation, you will get two points for each incorrect implementation that your JUnit tests find incorrect.

The incorrect implementations do not contain any really obscure bugs: Each of them contradicts with at least some of expected behaviour that has been defined in the documentation.

A+ presents the exercise submission form here.

Posting submission...