Using Eclipse and Junit, I got a similar error message if the test function lacks parentheses.
Note that your example class lacks a closing bracket '}'.
Adding a closing bracket could help you solve this issue.
If you have still a similar error, I would advise to check:
is the testing library in modulepath or classpath ? Junit has to be in classpath
Are the imports correct according to the documentation ?
Is the unit test file in a package of the same name than the class tested ?
Is the package of the tested class imported ? Ex.: package myClass