> + @Test
> + public void spatialExample() throws IOException {
> + //kind of a hack so that SpatialExample is tested despite
> + // it not starting or ending with "Test".
> + SpatialExample.main(null);
> + }
> +
> }
This is actually not the test framework's deal but an explicit fileset
that is used to collect and provide suite classes. I think (would have
to check) it would work the same even if you provided ALL classes as
the input, the difference being it'd be slower (more parsing, more
discarded classes).
Alternatively, you could probably try to embed a static public
RunAsTest class inside SpatialExample... this should also be picked up
because its name would be SpatialExample$RunAsTest (unless that
fileset explicitly discards nested classes).
Dawid
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]