1 10 package org.picocontainer.defaults; 11 12 import junit.framework.TestCase; 13 import org.picocontainer.PicoIntrospectionException; 14 19 public class ConstantParameterTestCase extends TestCase { 20 21 24 public void testThatInstaceTypeAcceptedForPrimitives() throws Exception { 25 ConstantParameter param = new ConstantParameter(new Integer (239)); 26 try{ 27 param.verify(null,null,Integer.TYPE); 28 } catch(PicoIntrospectionException ex) { 29 fail("failed verification for primitive / instance "); 30 } 31 } 32 } 33 | Popular Tags |