Examples of TestBean


Examples of bean.TestBean

        map = param;
        return map;
    }

    public TestBean echoBean(TestBean testBean1) {
        TestBean testBean = new TestBean();
        testBean.setTestString(testBean1.getTestString());
        testBean.setTestInt(testBean1.getTestInt());
        return testBean;
    }
View Full Code Here

Examples of com.dooapp.fxform.TestBean

  }

  @Test
  public void testMultipleBeanSource() throws IllegalArgumentException {
    FXForm fxForm = new FXForm();
    fxForm.setSource(new MultipleBeanSource(new TestBean(), new TestBean2()));
    Assert.assertEquals(5, fxForm.getElements().size());
    Assert.assertTrue(hasElement(fxForm.getElements(), "propInBean2"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "stringProperty"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "booleanProperty"));
    Assert.assertTrue(hasElement(fxForm.getElements(), "doubleProperty"));
View Full Code Here

Examples of com.googlecode.wicketwebbeans.examples.simple.TestBean

{
    private static final long serialVersionUID = 3147855853289348620L;

    public TabBeanPage()
    {
        TestBean bean = new TestBean();
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
View Full Code Here

Examples of com.googlecode.wicketwebbeans.examples.simple.TestBean

{
    private static final long serialVersionUID = 1182855853289191460L;

    public ContextBeanPage()
    {
        TestBean bean = new TestBean();
        bean.setFirstName("Dan");
        bean.setLastName("Syrstad");
        bean.setOperand1(BigDecimal.valueOf(123.0));
        bean.setOperand2(BigDecimal.valueOf(456.0));
       
        BeanMetaData meta = new BeanMetaData(bean.getClass(), "limitedEdit", this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
View Full Code Here

Examples of com.googlecode.wicketwebbeans.examples.simple.TestBean

{
    private static final long serialVersionUID = 1982855853289142640L;

    public ActionBeanPage()
    {
        TestBean bean = new TestBean();
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
View Full Code Here

Examples of com.opensymphony.xwork2.TestBean

        ActionProxy proxy = actionProxyFactory.createActionProxy("", MockConfigurationProvider.MODEL_DRIVEN_PARAM_TEST, extraContext);
        assertEquals(Action.SUCCESS, proxy.execute());

        ModelDrivenAction action = (ModelDrivenAction) proxy.getAction();
        TestBean model = (TestBean) action.getModel();

        String property = System.getProperty("xwork.security.test");
        assertNull(property);
    }
View Full Code Here

Examples of com.opensymphony.xwork2.TestBean

        ActionProxy proxy = actionProxyFactory.createActionProxy("", MockConfigurationProvider.MODEL_DRIVEN_PARAM_TEST, extraContext);
        assertEquals(Action.SUCCESS, proxy.execute());

        ModelDrivenAction action = (ModelDrivenAction) proxy.getAction();
        TestBean model = (TestBean) action.getModel();
        assertEquals(nameVal, model.getName());
        assertEquals(15, model.getCount());
        assertEquals(fooVal, action.getFoo());
    }
View Full Code Here

Examples of com.opensymphony.xwork2.TestBean

        assertEquals(datet, time1);
    }

    public void testFieldErrorMessageAddedForComplexProperty() {
        SimpleAction action = new SimpleAction();
        action.setBean(new TestBean());

        stack.push(action);

        Map<String, Object> ognlStackContext = stack.getContext();
        ognlStackContext.put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
View Full Code Here

Examples of com.opensymphony.xwork2.TestBean

        assertEquals(dateString, converter.convertValue(context, null, null, null, date, String.class));
    }

    public void testStringToIntConversions() {
        SimpleAction action = new SimpleAction();
        action.setBean(new TestBean());

        stack.push(action);

        Map ognlStackContext = stack.getContext();
        ognlStackContext.put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
View Full Code Here

Examples of com.opensymphony.xwork2.TestBean

        assertEquals(ExpressionValidator.class, validator.getClass());
    }

    public void testShouldAutowireObjectsObtainedFromTheObjectFactoryByFullClassName() throws Exception {
        sac.getBeanFactory().registerSingleton("bean", new TestBean());
        TestBean bean = (TestBean) sac.getBean("bean");

        SimpleAction action = (SimpleAction) objectFactory.buildBean(SimpleAction.class.getName(), null);

        assertEquals(bean, action.getBean());
    }
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.