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 Aslak Hellesoy and Paul Hammant * 9 *****************************************************************************/ 10 11 package picocontainer; 12 13 import junit.framework.TestCase; 14 import picocontainer.testmodel.FlintstonesImpl; 15 import picocontainer.testmodel.FredImpl; 16 import picocontainer.testmodel.WilmaImpl; 17 18 public class NoPicoTestCase extends TestCase { 19 20 /*** 21 * A demonstration of using components WITHOUT Pico (or Nano) 22 * This was one of the design goals. 23 * 24 * This is manual lacing of components. 25 * 26 */ 27 public void testWilmaWithoutPicoTestCase() { 28 29 WilmaImpl wilma = new WilmaImpl(); 30 FredImpl fred = new FredImpl(wilma); 31 32 assertTrue("Wilma should have had her hello method called", 33 wilma.helloCalled()); 34 } 35 36 37 }

This page was automatically generated by Maven