Package jodd.petite.tst5

Examples of jodd.petite.tst5.Planet


  public void testProviderLookup() {
    PetiteContainer pc = new PetiteContainer();

    pc.registerPetiteBean(Solar3.class, null, null, null, false);

    Planet earth = (Planet) pc.getBean("planet");

    assertEquals("Earth", earth.toString());
  }
View Full Code Here


    PetiteContainer pc = new PetiteContainer();

    pc.registerPetiteBean(Solar.class, null, null, null, false);
    pc.registerPetiteBean(Sun.class, null, null, null, false);

    Sun sun = pc.getBean(Sun.class);

    assertEquals("Sun{Earth}", sun.toString());
  }
View Full Code Here

    PetiteContainer pc = new PetiteContainer();

    pc.registerPetiteBean(Solar3.class, null, null, null, false)// still needs to be a bean
    pc.registerPetiteBean(Sun.class, null, null, null, false);

    Sun sun = pc.getBean(Sun.class);

    assertEquals("Sun{Earth}", sun.toString());
  }
View Full Code Here

    pc.registerPetiteBean(Sun2.class, null, null, null, false);

    pc.registerPetiteProvider("planet", "solar2", "planetProvider", ReflectUtil.NO_PARAMETERS);
    pc.registerPetitePropertyInjectionPoint("sun2", "planet", null);

    Sun2 sun = pc.getBean(Sun2.class);

    assertEquals("Sun{Earth}", sun.toString());
  }
View Full Code Here

TOP

Related Classes of jodd.petite.tst5.Planet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.