001    /*****************************************************************************
002     * Copyright (C) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Original code by                                                          *
009     *****************************************************************************/
010    package org.picocontainer.doc.tutorial.simple2;
011    
012    import junit.framework.TestCase;
013    import org.picocontainer.MutablePicoContainer;
014    import org.picocontainer.DefaultPicoContainer;
015    import org.picocontainer.doc.tutorial.interfaces.Kissable;
016    import org.picocontainer.doc.tutorial.simple.Girl;
017    
018    public class ConcreteClasses2TestCase extends TestCase {
019    
020        public void testAssembleComponentsAndInstantiateAndUseThem() {
021            // START SNIPPET: assemble
022            MutablePicoContainer pico = new DefaultPicoContainer();
023            pico.addComponent(Kissable.class, Boy.class);
024            pico.addComponent(Girl.class);
025            // END SNIPPET: assemble
026    
027        }
028    
029    
030    }