@@ -0,0 +1,2086 @@
+package org.picocontainer.doc.tutorial.blocks;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.picocontainer.MutablePicoContainer;%0Aimport org.picocontainer.defaults.CachingComponentAdapter;%0Aimport org.picocontainer.defaults.ConstructorInjectionComponentAdapter;%0Aimport org.picocontainer.defaults.DefaultPicoContainer;%0Aimport org.picocontainer.defaults.InstanceComponentAdapter;%0Aimport org.picocontainer.doc.introduction.Apple;%0Aimport org.picocontainer.doc.introduction.Juicer;%0Aimport org.picocontainer.doc.introduction.Peeler;%0A%0A/**%0A * Test case for the snippets used in %22Component Adapters and Factories%22%0A * @author J&ouml;rg Schaible%0A */%0Apublic class BuildingBlocksTestCase extends TestCase %7B%0A    public void testRegisterConvenient() %7B%0A        // START SNIPPET: register-convenient%0A        MutablePicoContainer picoContainer = new DefaultPicoContainer();%0A        picoContainer.registerComponentImplementation(Juicer.class);%0A        picoContainer.registerComponentImplementation(%22My Peeler%22, Peeler.class);%0A        picoContainer.registerComponentInstance(new Apple());%0A        // END SNIPPET: register-convenient%0A        // START SNIPPET: register-direct%0A        picoContainer.registerComponent(new InstanceComponentAdapter(%22Another Apple%22, new Apple()));%0A        // END SNIPPET: register-direct%0A    %7D%0A    %0A    public void testRegisterEquivalentConvenient() %7B%0A        MutablePicoContainer picoContainer = new DefaultPicoContainer();%0A        // START SNIPPET: register-equivalent-convenient%0A        picoContainer.registerComponentImplementation(Juicer.class);%0A        // END SNIPPET: register-equivalent-convenient%0A    %7D%0A    %0A    public void testRegisterEquivalentAtLength() %7B%0A        MutablePicoContainer picoContainer = new DefaultPicoContainer();%0A        // START SNIPPET: register-equivalent-at-length%0A        picoContainer.registerComponent(%0A                new CachingComponentAdapter(%0A                        new ConstructorInjectionComponentAdapter(%0A                                Juicer.class, Juicer.class, null)));%0A        // END SNIPPET: register-equivalent-at-length%0A    %7D%0A%7D%0A

Add first version of tutorial for CAs.