| org.geotools.factory.FactoryRegistryTest
FactoryRegistryTest | final public class FactoryRegistryTest extends TestCase (Code) | | Tests
FactoryRegistry implementation.
version: $Id: FactoryRegistryTest.java 27848 2007-11-12 13:10:32Z desruisseaux $ author: Martin Desruisseaux |
FactoryRegistryTest | public FactoryRegistryTest(String testName)(Code) | | Constructs a test case.
|
main | public static void main(String[] args)(Code) | | Run the suite from the command line.
|
setUp | protected void setUp()(Code) | | Ensures that class
Hints is loaded before
DummyFactory .
It is not needed for normal execution, but Maven seems to mess with class loaders.
|
suite | public static Test suite()(Code) | | Returns the test suite.
|
testGetProvider | public void testGetProvider()(Code) | | Tests the
FactoryRegistry.getProvider method.
Note that the tested method do not create any new factory.
If no registered factory matching the hints is found, an exception is expected.
Three factories are initially registered: factory #1, #2 and #3.
Factory #1 has no dependency.
Factory #2 uses factory #1.
Factory #3 uses factory #2, which implies an indirect dependency to factory #1.
Additionnaly, factory #1 uses a KEY_INTERPOLATION hint.
|
|
|