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 org.picocontainer; 12 13 import junit.framework.TestCase; 14 import org.picocontainer.testmodel.DependsOnTouchable; 15 import org.picocontainer.testmodel.SimpleTouchable; 16 17 public class NoPicoTestCase extends TestCase { 18 19 /*** 20 * RecordingAware2 demonstration of using components WITHOUT Pico (or Nano) 21 * This was one of the design goals. 22 * 23 * This is manual lacing of components. 24 */ 25 public void testTouchableWithoutPicoTestCase() { 26 27 SimpleTouchable touchable = new SimpleTouchable(); 28 new DependsOnTouchable(touchable); 29 30 assertTrue("Touchable should have had its wasTouched method called", 31 touchable.wasTouched); 32 } 33 }

This page was automatically generated by Maven