001package org.andromda.core.configuration.namespace;
002
003import junit.framework.TestCase;
004import org.andromda.core.configuration.Namespaces;
005import org.andromda.core.namespace.NamespaceComponents;
006
007/**
008 * Tests {@link NamespaceComponents}
009 *
010 * @author Chad Brandon
011 */
012public class NamespaceComponentsTest
013    extends TestCase
014{
015    /**
016     *
017     */
018    public void testInstance()
019    {
020        final NamespaceComponents componentRegistry = NamespaceComponents.instance();
021        componentRegistry.discover();
022        assertEquals("3", Namespaces.instance().getPropertyValue("test", "definitionOne"));
023        assertEquals("two", Namespaces.instance().getPropertyValue("test", "definitionTwo"));
024    }
025}
026