Package org.apache.wicket.injection

Examples of org.apache.wicket.injection.Injector


  /**
   * Test abort injection on boundary class
   */
  public void testBreakOnBoundary()
  {
    Injector injector = new Injector()
    {
      protected boolean isBoundaryClass(Class clazz)
      {
        return clazz.equals(InternalTestObject.class);
      }
    };

    TestObject testObject = new TestObject();

    injector.inject(testObject, factory);

    assertTrue(testObject.getDependency1() == null);
    assertEquals(testObject.getDependency2().getMessage(), "dont-inject");
    assertEquals(testObject.getDependency3().getMessage(), "dont-inject");
    assertEquals(testObject.getDependency4().getMessage(), "inject");
View Full Code Here

TOP

Related Classes of org.apache.wicket.injection.Injector

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.