Implementing tasks

Preparation
  1. Download and unzip the above file exam.zip. You should see a directory »Exam« containing a pom.xml file.

  2. Open this project in your IDEA IDE selecting the Exam/pom.xml file.

  3. Open a terminal in your IDEA IDE and type »mvn javadoc:javadoc«. This will generate the API documentation rooted at target/site/apidocs/index.html.

  4. Open target/site/apidocs/index.html in your browser of choice and navigate to the individual classes to be implemented. Read both class and method descriptions.

Description

Your imported project contains:

  • Partial implementations of classes and methods.

  • Javadoc comments describing the desired (not yet implemented) behaviour.

  • Junit tests for testing the desired behaviour.

Tasks

exercise No. 206

Q:

Complete the implementation of classes and methods in both packages de.hdm_stuttgart.mi.sd1.task1 and de.hdm_stuttgart.mi.sd1.task2. Your project's test branch provides corresponding Junit tests for each class / method to be implemented.

A:

Solution see below winter 2022 Exam.

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 not contribute any 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.ShowReachedPoints in your project's test branch as a Java application (not as Junit test!) shows your number of points reached so far.

  • Do not model your implementations along unit test definitions i.e avoid cheating this way! Such behaviour will be regarded as an attempt at deception (Täuschungsversuch).

Project upload
  1. Export your project by hitting »File« --> »Export« --> »Project to Zip File« in IDEA creating e.g. a file solution-1.zip.

  2. Hit the choose file button in your ILIAS browser tab and select solution-1.zip.

  3. Click upload.

  4. Save your upload by advancing to the next question. (THIS IS IMPORTANT!!!!!)

Common pitfalls:

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

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

  • On advancing your implementation you may upload improved versions i.e. solution_2.zip etc. of your project at any time. Only your least uploaded archive will become subject to marking.

Caveats
  • When approaching end of examination check your input for completeness prior to being automatically logged out by the system. Remember: There is 120 minutes for the examination and another 5 minutes to check for completeness.

  • Projects residing just on your local workstation's file system cannot be recovered after finishing the exam.