Implementing tasks

Preparations

Download and unzip the above file exam.zip. This will create a subfolder Exam containing a Maven skeleton project. Start your IDEA IDE choosing »Import Project« and subsequently select the unzipped Exam/pom.xml file.

The Javadoc comments describe the expected behaviour. They are meant to be converted to HTML either by Idea Maven goal execution or by command line using mvn javadoc:javadoc.

Description

Your imported project contains:

  • Partial implementations of classes and methods.

  • Javadoc comments describing the desired behaviour

  • Junit tests for testing the desired (not yet implemented) behaviour.

Tasks

Complete the implementation of classes and methods in package de.hdm_stuttgart.mi.sd1.task1. Your project's test branch contains corresponding Junit tests.

To be implemented Corresponding tests
Helper Test_Helper
HelperArray Test_HelperArray
Hints
  • Your score solely depends on the number of successfully executing unit tests. A »nearly correct« implementation failing with respect to a given unit tests will contribute no points at all.

    General advice: Implement less but correctly.

  • Mind special cases i.e. null variable values or null values being contained in arrays.

  • In case of test failures both the IDEA debugger and logging statements are your friend.

  • Executing de.hdm_stuttgart.mi.sd1.test.ShowReachedPoints in your project's test branch as Java application (not as Junit test!) shows your number of points reached so far.

Project upload

Export your project by hitting »File« --> »Export to Zip File« in IDEA creating an e.g. solution-1.zip file. Then enter your ILIAS browser, hit the choose file button selecting solution-1.zip and subsequently click upload. Do not forget to advance to the next question for actually saving your upload. Common pitfalls:

  • Do not select the wrong archive! In particular avoid choosing the original exam.zip skeleton.

  • After uploading check for solution_1.zip being visible in the examination system.

  • You may upload multiple versions i.e. solution_2.zip etc. . Only your least uploaded archive will become subject to marking.

Caveats
  • When approaching examination ending time check your input for completeness.

  • Projects residing just on your local workstation cannot be recovered after exam termination.

Solution