Examples of instantiateComponent()


Examples of jfun.yan.Container.instantiateComponent()

        //e.printResolutionTrace();
        assertEquals("useProperty can only be used for parameter or property",
            e.getMessage());
      }
      try{
        yan.instantiateComponent(use1);
        //yan.getInstance("target");
      }
      catch(YanException e){
        //e.printResolutionTrace();
        assertTraceSize(e, 2);
View Full Code Here

Examples of jfun.yan.Container.instantiateComponent()

          new Component[]{Components.value(false),
          Components.value("Ent"),
          Components.value((short)-1),
          Components.value(new int[]{1,2,3,4})});
      yan.verifyComponent(target);
      final MyBean mb = (MyBean)yan.instantiateComponent(target);
      assertTrue(mb.is1());
      assertEquals("Ent", mb.getName());
      assertEquals((short)-1, mb.getShort());
      assertEquals(3, mb.getNums().length);
    }
View Full Code Here

Examples of jfun.yan.Container.instantiateComponent()

      //System.out.println(jfun.yan.etc.Introspector.getComponentInfo(cc_src_dst));
      assertComponentInfo(cc_src_dst, 0, "",
          "force=boolean, options=class java.lang.String",
          tests.jfun.models.CopyCommand.class
          );
      final CopyCommand cm = (CopyCommand)yan.instantiateComponent(cc_src_dst);
      assertEquals("d:/", cm.getSource());
      assertEquals("e:/abc", cm.getDest());
      assertTrue(cm.isForce());
      assertEquals("", cm.getOptions());
    }
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.