Package jfun.yan

Examples of jfun.yan.Container.verifyKey()


    final Container yan = createYanContainer();
    yan.registerComponent("target", Components.list(new Creator[]{
        Components.value("hello"), Components.useKey("target")}
    ));
    try{
      yan.verifyKey("target");
      fail("should have failed with cyclic dependency");
    }
    catch(CyclicDependencyException e){
      assertEquals(4, e.getResolutionTrace().size());
      assertEntry(e, 0, "list [hello,useKey <target>]");
View Full Code Here


    final Container yan = createYanContainer();
    yan.registerComponent("target", Components.array(new Component[]{
        Components.value("hello"), Components.useKey("target")}
    ));
    try{
      yan.verifyKey("target");
      fail("should have failed with cyclic dependency");
    }
    catch(CyclicDependencyException e){
      assertTraceSize(e, 4);
      assertEntry(e, 0, "array [hello,useKey <target>]:java.lang.Object[]");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.