Package org.andromda.core.configuration.namespace

Source Code of org.andromda.core.configuration.namespace.NamespaceComponentsTest

package org.andromda.core.configuration.namespace;

import junit.framework.TestCase;

import org.andromda.core.configuration.Namespaces;
import org.andromda.core.namespace.NamespaceComponents;

/**
* Tests {@link NamespaceComponents}
*
* @author Chad Brandon
*/
public class NamespaceComponentsTest
    extends TestCase
{
    public void testInstance()
    {
        final NamespaceComponents componentRegistry = NamespaceComponents.instance();
        componentRegistry.discover();
        assertEquals("3", Namespaces.instance().getPropertyValue("test", "definitionOne"));
        assertEquals("two", Namespaces.instance().getPropertyValue("test", "definitionTwo"));
    }
}
TOP

Related Classes of org.andromda.core.configuration.namespace.NamespaceComponentsTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.