JUnit can only test methods, not general input/output of a program. For general input/output one needs blackbox tests or one needs to write a method that returns the output before it is actually printed.
Apart from assertEquals, other tests can be used (delta sets the precision for float and double):
The test should be uploaded as a .java file using the "Create File Checker" and be used with the JUnit Checker. The class file of the test will be generated by the Praktomat. Note: in the Create File Checker the filename should be the java file of the test, whereas in the JUnit Checker the class filename should be provided. In case of JUnit 4 the class should be provided without the extension "class". The tests should not be compiled as part of a package. Further documentation can be found on the JUnit 3 and JUnit 4 websites.