@@ -0,0 +1,2065 @@
+/**%0A  * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A  * you may not use this file except in compliance with the License.%0A  * You may obtain a copy of the License at%0A  *  %0A  * %09http://www.apache.org/licenses/LICENSE-2.0%0A  *  %0A  * Unless required by applicable law or agreed to in writing, software%0A  * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A  * See the License for the specific language governing permissions and%0A  * limitations under the License. %0A  */%0A%0Apackage org.ximplementation.support;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNull;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * %7B@linkplain SimpleImplementorBeanFactory%7D unit tests.%0A * %0A * @author earthangry@gmail.com%0A * @date 2016-9-1%0A *%0A */%0Apublic class SimpleImplementorBeanFactoryTest extends AbstractTestSupport%0A%7B%0A%09@Before%0A%09public void setUp() throws Exception%0A%09%7B%0A%09%7D%0A%0A%09@After%0A%09public void tearDown() throws Exception%0A%09%7B%0A%09%7D%0A%0A%09@Test%0A%09public void getImplementorBeansTest()%0A%09%7B%0A%09%09// this.implementorBeansMap == null%0A%09%09%7B%0A%09%09%09SimpleImplementorBeanFactory factory = new SimpleImplementorBeanFactory();%0A%09%09%09assertNull(factory.getImplementorBeans(Number.class));%0A%09%09%7D%0A%0A%09%09// this.implementorBeansMap != null%0A%09%09%7B%0A%09%09%09List%3CNumber%3E numbers = new ArrayList%3CNumber%3E();%0A%09%09%09numbers.add(1);%0A%09%09%09numbers.add(2.0F);%0A%0A%09%09%09List%3CInteger%3E integers = new ArrayList%3CInteger%3E();%0A%09%09%09integers.add(1);%0A%09%09%09integers.add(2);%0A%0A%09%09%09Map%3CClass%3C?%3E, Collection%3C?%3E%3E map = new HashMap%3CClass%3C?%3E, Collection%3C?%3E%3E();%0A%09%09%09map.put(Number.class, numbers);%0A%09%09%09map.put(Integer.class, integers);%0A%0A%09%09%09SimpleImplementorBeanFactory factory = new SimpleImplementorBeanFactory(%0A%09%09%09%09%09map);%0A%0A%09%09%09assertEquals(numbers, factory.getImplementorBeans(Number.class));%0A%09%09%09assertEquals(integers, factory.getImplementorBeans(Integer.class));%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add SimpleImplementorBeanFactoryTest unit test class