Revision 32880 branches/v2_0_0_prep/libraries/libMetadata/src-test/org/gvsig/metadata/simple/SimpleMDLibraryTest.java
SimpleMDLibraryTest.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import junit.framework.TestCase; |
34 | 34 |
|
35 |
import org.gvsig.metadata.MDLibrary;
|
|
36 |
import org.gvsig.metadata.MDLocator;
|
|
35 |
import org.gvsig.metadata.MetadataLibrary;
|
|
36 |
import org.gvsig.metadata.MetadataLocator;
|
|
37 | 37 |
import org.gvsig.tools.library.Library; |
38 | 38 |
|
39 | 39 |
public class SimpleMDLibraryTest extends TestCase { |
40 | 40 |
|
41 | 41 |
/** |
42 |
* Test method for {@link org.gvsig.metadata.simple.SimpleMDLibrary#initialize()}.
|
|
42 |
* Test method for {@link org.gvsig.metadata.simple.SimpleMetadataLibrary#initialize()}.
|
|
43 | 43 |
*/ |
44 | 44 |
public void testInitialize() { |
45 |
Library api = new MDLibrary();
|
|
46 |
Library impl = new SimpleMDLibrary();
|
|
45 |
Library api = new MetadataLibrary();
|
|
46 |
Library impl = new SimpleMetadataLibrary();
|
|
47 | 47 |
|
48 | 48 |
// 1: Initialize the Libraries |
49 | 49 |
api.initialize(); |
... | ... | |
56 | 56 |
impl.postInitialize(); |
57 | 57 |
|
58 | 58 |
// Check if the correct implementation is returned |
59 |
assertEquals(SimpleMDManager.class, MDLocator.getMDManager()
|
|
59 |
assertEquals(SimpleMetadataManager.class, MetadataLocator.getMetadataManager()
|
|
60 | 60 |
.getClass()); |
61 | 61 |
} |
62 | 62 |
|
Also available in: Unified diff