Class TestCase

Object
TestCase
Direct Known Subclasses:
ImageIOTestCase, NameTest, ReferencingTestCase, TransformTestCase

@TestInstance(PER_METHOD) public abstract class TestCase extends Object
Base class of all GeoAPI tests. All concrete subclasses need at least one Factory for instantiating the objects to test. The factories must be specified at subclasses construction time either directly by the implementer, or indirectly through dependency injection.

Test case life cycle

GeoAPI test cases contain states as non-final protected fields. Therefor, a new TestCase instance should be created for each test method to run (Lifecycle.PER_METHOD). If PER_CLASS is desired, then subclasses are responsible for resetting these fields after each test.
Since:
2.2