org.picocontainer.defaults.GenericsTestCase Maven / Gradle / Ivy
/*****************************************************************************
* Copyright (C) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
* the LICENSE.txt file. *
* *
* Original code by *
*****************************************************************************/
package org.picocontainer.defaults;
import org.junit.Test;
/**
* Uncomment all the tests in this class (as well as the obvious places in
* ConstructorInjectionComponentAdapter) in order to run with generics support
* Requires JDK 1.5 with generics enabled.
*
* @author Aslak Hellesøy
*/
public class GenericsTestCase {
@Test public void testDummy() {
}
/*
private MutablePicoContainer pico;
private Shark shark;
private Cod cod;
private Bowl bowl;
protected void setUp() throws Exception {
pico = new DefaultPicoContainer();
shark = new Shark();
cod = new Cod();
pico.addAdapter("shark", shark);
pico.addAdapter(cod);
pico.addAdapter(Bowl.class);
bowl = (Bowl) pico.getComponent(Bowl.class);
}
public static interface Fish {
}
public static class Cod implements Fish{
}
public static class Shark implements Fish{
}
public static class Bowl {
private final Collection fishes;
private final Set cods;
private final Map stringFishMap;
private final Map