Examples of TestBean


Examples of org.springframework.webflow.TestBean

    Flow flow = new Flow("myFlow");
    StubViewFactory viewFactory = new StubViewFactory();
    ViewState state = new ViewState(flow, "viewState", viewFactory);
    state.addVariable(new ViewVariable("foo", new VariableValueFactory() {
      public Object createInitialValue(RequestContext context) {
        return new TestBean();
      }

      public void restoreReferences(Object value, RequestContext context) {
        ((TestBean) value).datum1 = "Restored";
      }
View Full Code Here

Examples of org.springmodules.beans.TestBean

    worker.stop();
  }

  public void testSuccessfulInvocations() throws Exception {

    TestBean target = new TestBean();

    JavaSpaceInterceptor si = new JavaSpaceInterceptor(template);
    ProxyFactory pf = new ProxyFactory(new Class[] { ITestBean.class });
    pf.addAdvice(new PerformanceMonitorInterceptor());
    pf.addAdvice(si);
View Full Code Here

Examples of sample.rmi.server.dto.TestBean

                    (Service2Interface) RMIClientProxy.createProxy(
                            Service2Interface.class,
                            configurator,
                            "http://localhost:8080/axis2/services/Service2");
            TestComplexBean testComplexBean = new TestComplexBean();
            testComplexBean.addTestBean(new TestBean(5,"teststring1"));
            testComplexBean.addTestBean(new TestBean(6,"teststring2"));
            testComplexBean.addTestBean(new TestBean(7,"teststring3"));
            TestComplexBean result = proxy.method2(testComplexBean);
            TestBean testBean;
            for (Iterator iter = result.getTestBeans().iterator();iter.hasNext();){
                testBean = (TestBean) iter.next();
                System.out.println("Parm1 ==> " + testBean.getParam1());
                System.out.println("Parm2 ==> " + testBean.getParam2());
            }
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }
    }
View Full Code Here

Examples of se.gu.fire.util.test.TestBean

    private static TestBean testBean;

    @BeforeClass
    public static void setUpClass() throws Exception {
        em = Persistence.createEntityManagerFactory(TestUtil.TEST_PU_NAME).createEntityManager();
        testBean = new TestBean(em);
    }
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.