Basic compilation tests

The page contains a sequence of tests which are designed to test the basic operation of the test harness.


This test is supposed to pass, with the result "Compilation succeeded as expected".

title Should Pass: Compilation succeeded as expected
source CompSucc.java
keywords compile positive ShouldPass


This test is supposed to pass, with the result "Compilation succeeded as expected".

title Should Pass: Compilation succeeded as expected (multiple source files)
source CompSucc1.java CompSucc2.java
keywords compile positive ShouldPass


This test is supposed to fail, with the result "Compilation failed as expected".

title Should Pass: Compilation failed as expected
source CompFailExp.java
keywords compile negative ShouldPass


This test is supposed to fail, with the result "Compilation succeeded unexpectedly".

title Should Fail: Compilation succeeded unexpectedly
source CompSuccUnexp.java
keywords compile negative ShouldFail


This test is supposed to give an error, with the result "No source files found".

title Should Error: No source files found
keywords compile ShouldError positive


This test is supposed to fail, with the result "Compilation failed unexpectedly".

title Should Fail: Compilation failed unexpectedly
source CompFailUnexp.java
keywords positive compile ShouldFail


Links to other places such as Example, mail addresses, or up the tree should not be followed.