Java Model Solution

HelloWorld.java:

JUnit 4 Test

Note that if the source code belongs to a package (i.e. contains a package statement) the filename and the test class name must contain this package name. Otherwise the test will not compile.

Filename:

de/proglabor/aufgabe1/HelloWorldTest.java
Test Class :
de.proglabor.aufgabe1.HelloWorldTest

Checkstyle: checking that some string does not occur

This can be used for any file in any programming language. Property "format" contains the string which should at most "maximum" times occur.

Checkstyle: checking that some string does occur

This can be used for any file in any programming language.

Checkstyle for Java