Package org.soybeanMilk.core

Examples of org.soybeanMilk.core.ObjectSource


    Map<String, Object> src=new HashMap<String, Object>();
    src.put("id", 1);
    src.put("name", "generic");
    src.put("age", 5);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", src);
   
    invoke.execute(os);
   
    JavaBeanSub re=os.get("result");
   
    Assert.assertEquals(1, re.getId().intValue());
    Assert.assertEquals("generic", re.getName());
    Assert.assertEquals(5, re.getAge().intValue());
  }
View Full Code Here


    Map<String, Object> src=new HashMap<String, Object>();
    src.put("id", 1);
    src.put("name", "generic");
    src.put("age", 5);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", src);
   
    invoke.execute(os);
   
    JavaBeanSub re=os.get("result");
   
    Assert.assertEquals(1, re.getId().intValue());
    Assert.assertEquals("generic", re.getName());
    Assert.assertEquals(5, re.getAge().intValue());
  }
View Full Code Here

    Map<String, Object> src=new HashMap<String, Object>();
    src.put("id", 1);
    src.put("name", "generic");
    src.put("age", 5);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", src);
   
    invoke.execute(os);
   
    JavaBeanSub re=os.get("result");
   
    Assert.assertEquals(1, re.getId().intValue());
    Assert.assertEquals("generic", re.getName());
    Assert.assertEquals(5, re.getAge().intValue());
  }
View Full Code Here

    Map<String, Object> src=new HashMap<String, Object>();
    src.put("id", 1);
    src.put("name", "generic");
    src.put("age", 5);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", src);
   
    invoke.execute(os);
   
    JavaBeanSub re=os.get("result");
   
    Assert.assertEquals(1, re.getId().intValue());
    Assert.assertEquals("generic", re.getName());
    Assert.assertEquals(5, re.getAge().intValue());
  }
View Full Code Here

    };
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke invoke=new Invoke("test", rp, "test1", args, RESULT_KEY);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", "arg0");
    os.set("arg1", "arg1");
   
    ArgPrepareExecuteException re=null;
    try
    {
      invoke.execute(os);
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.ObjectSource

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.