ComponentAdapter adapter = picoContainer.registerComponentImplementation(Touchable.class, SimpleTouchable.class);
assertFalse(parameter.isResolvable(picoContainer, adapter, TestCase.class));
}
public void testParameterRespectsExpectedType() throws PicoInitializationException, NotConcreteRegistrationException, PicoIntrospectionException {
Parameter parameter = new ConstantParameter(Touchable.class);
MutablePicoContainer picoContainer = new DefaultPicoContainer();
assertFalse(parameter.isResolvable(picoContainer, null, TestCase.class));
ComponentAdapter adapter = picoContainer.registerComponentImplementation(Touchable.class, SimpleTouchable.class);
assertNull(ComponentParameter.DEFAULT.resolveInstance(picoContainer, adapter, TestCase.class));
}