1 /****************************************************************************** 2 * Copyright (C) PicoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 * * 8 * Idea by Rachel Davies, Original code by Stacy Curl * 9 *****************************************************************************/ 10 11 package org.picocontainer.defaults; 12 13 import org.picocontainer.PicoIntrospectionException; 14 import org.picocontainer.internals.ComponentSpecification; 15 import org.picocontainer.testmodel.SimpleTouchable; 16 import org.picocontainer.testmodel.Touchable; 17 18 import junit.framework.TestCase; 19 20 public class ComponentSpecificationTestCase extends TestCase { 21 public void testEquals() throws PicoIntrospectionException { 22 ComponentSpecification componentSpecification = 23 createComponentSpecification(); 24 25 assertEquals(componentSpecification, componentSpecification); 26 } 27 28 private ComponentSpecification createComponentSpecification() throws PicoIntrospectionException { 29 return new ComponentSpecification(new DefaultComponentFactory(), Touchable.class, 30 SimpleTouchable.class); 31 } 32 }

This page was automatically generated by Maven