|Constructor and Description|
|Modifier and Type||Method and Description|
Return the directory containing GeoTools test fixture configuration files.
Return the file that should contain the fixture configuration properties.
Return Properties loaded from a fixture configuration file, or null if not found.
Print a notice that tests are being skipped, identifying the property file whose absence is responsible.
public static File getFixtureDirectory()
Dots "." in the fixture id represent a subdirectory path under the GeoTools configuration
file directory. For example, an id
a.b.foo would be resolved to
the base fixture configuration file directory, typically ".geotools" in the user
the fixture id
fixtureId- the fixture id
fixtureFile- the missing fixture configuration file
public static Properties loadFixture(String fixtureId)
If a fixture configuration file is not found, a notice is printed to standard output stating that tests for this fixture id are skipped.
This method allows tests that cannot extend
OnlineTestSupport because they already extend another class (for example, a non-online test
framework) to access fixture configuration files in the same way that those classes do. Only
basic fixture configuration loading is supported. This method does not support the extra
services such as fixture caching and connection testing provided by
A JUnit 4 test fixture can readily be disabled in the absence of a fixture configuration
file by placing
similar in its
@BeforeClass method. JUnit 3 tests must provide their own logic,
TestCase.runTest(), or providing a
Copyright © 1996–2022 Geotools. All rights reserved.