01: package org.andromda.core.configuration.namespace;
02:
03: import junit.framework.TestCase;
04:
05: import org.andromda.core.configuration.Namespaces;
06: import org.andromda.core.namespace.NamespaceComponents;
07:
08: /**
09: * Tests {@link NamespaceComponents}
10: *
11: * @author Chad Brandon
12: */
13: public class NamespaceComponentsTest extends TestCase {
14: public void testInstance() {
15: final NamespaceComponents componentRegistry = NamespaceComponents
16: .instance();
17: componentRegistry.discover();
18: assertEquals("3", Namespaces.instance().getPropertyValue(
19: "test", "definitionOne"));
20: assertEquals("two", Namespaces.instance().getPropertyValue(
21: "test", "definitionTwo"));
22: }
23: }
|