KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > aop > dynaop > InstanceMixinFactoryTestCase


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 various *
9  *****************************************************************************/

10 package org.nanocontainer.aop.dynaop;
11
12 import dynaop.MixinFactory;
13 import junit.framework.TestCase;
14
15 /**
16  * @author Stephen Molitor
17  */

18 public class InstanceMixinFactoryTestCase extends TestCase {
19
20     public void testCreate() {
21         Object JavaDoc instance = "foo";
22         MixinFactory factory = new InstanceMixinFactory(instance);
23         assertSame(instance, factory.create(null));
24     }
25
26     public void testPropertiesNotNull() {
27         MixinFactory factory = new InstanceMixinFactory("foo");
28         assertNotNull(factory.getProperties());
29     }
30
31 }
32
Popular Tags