Package com.volantis.mcs.model.impl.descriptor

Examples of com.volantis.mcs.model.impl.descriptor.MostSpecificClassMap


    /**
     * Test that an empty map always returns null.
     */
    public void testEmpty() {
        MostSpecificClassMap map = new MostSpecificClassMap();

        assertNull(map.get(Object.class));
        assertNull(map.get(String.class));
    }
View Full Code Here


     * Test that if the map contains only the Object.class that it is always
     * returned.
     */
    public void testObject() {

        MostSpecificClassMap map = new MostSpecificClassMap();
        map.put(Object.class, "Object");

        assertEquals("Object", map.get(Object.class));
        assertEquals("Object", map.get(String.class));
        assertEquals("Object", map.get(Integer.class));
    }
View Full Code Here

     * Test that if the map contains Object and String then everything apart
     * from String returns the value associated with Object.
     */
    public void testString() {

        MostSpecificClassMap map = new MostSpecificClassMap();
        map.put(Object.class, "Object");
        map.put(String.class, "String");

        assertEquals("Object", map.get(Object.class));
        assertEquals("String", map.get(String.class));
        assertEquals("Object", map.get(Integer.class));
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.impl.descriptor.MostSpecificClassMap

Copyright © 2018 www.massapicom. 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.