Package jfun.yan.containers

Examples of jfun.yan.containers.SimpleContainer


        yan.registerValue(sb);
        yan.verify();
        assertSame(sb, yan.getInstance(StringBuffer.class));
    }
    public void testGettingComponentWithMissingDependencyFails(){
        SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
        try {
            picoContainer.getInstance(DependsOnTouchable.class);
            fail("should need a Touchable");
        } catch (jfun.yan.YanException e) {
          assertEquals(2, e.getResolutionTrace().size());
          assertParameter(e, 0, DependsOnTouchable.class, 0);
        }
View Full Code Here


          assertEquals(2, e.getResolutionTrace().size());
          assertParameter(e, 0, DependsOnTouchable.class, 0);
        }
    }
    public void testVerifyWithMissingDependencyFails(){
      SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
      try {
          picoContainer.verify();
          fail("should need a Touchable");
      } catch (jfun.yan.YanException e) {
      }
  }
View Full Code Here

TOP

Related Classes of jfun.yan.containers.SimpleContainer

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.