I just updated some toy code I had to use static imports for JUnit/Hamcrest things:
I created the above from the skeleton maven project when I created it originally.
When I run mvn clean install, it doesn't seem to compile/run my unit tests.
If you want to run my example:
git clone https://github.com/hiraethus/GosuMaven/
cd GosuMaven
git checkout -b bug/staticImportJunitNotRunning origin/bug/staticImportJunitNotRunning
mvn clean install
and then compare to before adding the static imports (also the gosu version is 1.10):
git checkout master
mvn clean install
You'll notice for master, it will run the tests but for bug/StaticImportJunitNotRunning it doesn't seem to compile the test classes.
The static imports seem to work for me otherwise. I created this staticImport.gs script and ran it with gosu 1.14 and it worked:
uses java.lang.String#format
uses java.util.ArrayList
var output = format("Answer to life, the Universe and Everything: %d", new Object[]{42})
print(output)
Is there something I'm doing incorrectly? Many thanks in advance - I'd like to have been able to work out why for myself :)