@@ -0,0 +1,2796 @@
+package org.apache.velocity.test.util.introspection;%0A%0A/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.    %0A */%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestSuite;%0A%0Aimport org.apache.velocity.test.BaseTestCase;%0Aimport org.apache.velocity.util.introspection.ClassMap;%0A%0A/**%0A * Test the ClassMap Lookup%0A */%0Apublic class ClassMapTestCase%0A        extends BaseTestCase%0A%7B%0A    public ClassMapTestCase(final String name)%0A    %09throws Exception%0A    %7B%0A        super(name);%0A    %7D%0A%0A    public static Test suite()%0A    %7B%0A        return new TestSuite(ClassMapTestCase.class);%0A    %7D%0A%0A    public void setUp()%0A            throws Exception%0A    %7B%0A    %7D%0A    %0A    public void tearDown()%0A    %7B%0A    %7D%0A%0A    public void testPrimitives()%0A    %09throws Exception%0A    %7B%0A        ClassMap c = new ClassMap(TestClassMap.class);%0A        assertNotNull(c.findMethod(%22setBoolean%22,   new Object%5B%5D %7B Boolean.TRUE %7D));%0A        assertNotNull(c.findMethod(%22setByte%22,      new Object%5B%5D %7B new Byte((byte) 4)%7D));%0A        assertNotNull(c.findMethod(%22setCharacter%22, new Object%5B%5D %7B new Character('c')%7D));%0A        assertNotNull(c.findMethod(%22setDouble%22,    new Object%5B%5D %7B new Double(8.0) %7D));%0A        assertNotNull(c.findMethod(%22setFloat%22,     new Object%5B%5D %7B new Float(15.0) %7D));%0A        assertNotNull(c.findMethod(%22setInteger%22,   new Object%5B%5D %7B new Integer(16) %7D));%0A        assertNotNull(c.findMethod(%22setLong%22,      new Object%5B%5D %7B new Long(23) %7D));%0A        assertNotNull(c.findMethod(%22setShort%22,     new Object%5B%5D %7B new Short((short)42)%7D));%0A    %7D%0A%0A    public static final class TestClassMap%0A    %7B%0A        public void setBoolean(boolean b)%0A        %7B%0A        %7D%0A%0A        public void setByte(byte b)%0A        %7B%0A        %7D%0A%0A        public void setCharacter(char c)%0A        %7B%0A        %7D%0A%0A        public void setDouble(double d)%0A        %7B%0A        %7D%0A%0A        public void setFloat(float f)%0A        %7B%0A        %7D%0A%0A        public void setInteger(int i)%0A        %7B%0A        %7D%0A%0A        public void setLong(long l)%0A        %7B%0A        %7D%0A%0A        public void setShort(short s)%0A        %7B%0A        %7D%0A    %7D%0A%7D%0A

Add some class map tests.