Programming Tasks Concept

Here we explain how programming tasks work.

1. Editable sources have errors

Members of the JavaBlackBelt community write questions and send them to us in a JAR file. This JAR contains editables Java sources, non-editable Java sources (the editable sources are noted in the manifest of the JAR), solution files (text files that contain the correct versions of the Java code -- code that works!) and a Junit test class.
The editable sources contain errors. So if you just run the test right away, it fails.
These editable sources are what are used to succeed a ProgTask.

The user receives sources with errors img




2. Using the editable sources

Edit the sources and when you think the answer is correct submit it by pressing the "Compile and Test" button. (FYI, there's also a "Give up" button.)

exam-taker edits the sources img




3. Run a test

When our server receives the sources you edited, it will run a JUnit test (given by the author of the question), but with the sources YOU just submitted.

The Junit test runs with the user sources img




4. The result

The JUnit test determines the success or failure of the tests.