Examples of TestBean


Examples of org.logicblaze.lingo.beans.TestBean

        assertEquals("myname", proxy.getName());
        assertEquals(50, proxy.getAge());
    }

    public void testJmsProxyFactoryBeanAndServiceExporterWithOneWays() throws Throwable {
        TestBean target = new TestBean("myname", 99);
        exporter = new JmsServiceExporter();
        exporter.setServiceInterface(ITestBean.class);
        exporter.setService(target);
        exporter.setProducer(createJmsProducer());
        configure(exporter);
View Full Code Here

Examples of org.logicblaze.lingo.beans.TestBean

            // expected
        }
    }

    public void testJmsProxyFactoryBeanAndServiceExporterWithJMSException() throws Exception {
        TestBean target = new TestBean("myname", 99);
        final JmsServiceExporter exporter = new JmsServiceExporter();
        exporter.setServiceInterface(ITestBean.class);
        exporter.setService(target);
        exporter.setProducer(createJmsProducer());
        configure(exporter);
View Full Code Here

Examples of org.logicblaze.lingo.beans.TestBean

            assertTrue(ex.getCause() instanceof JMSException);
        }
    }

    public void testJmsProxyFactoryBeanAndServiceExporterWithInvocationAttributes() throws Exception {
        TestBean target = new TestBean("myname", 99);
        final JmsServiceExporter exporter = new JmsServiceExporter();
        exporter.setServiceInterface(ITestBean.class);
        exporter.setService(target);
        exporter.setProducer(createJmsProducer());
        exporter.setRemoteInvocationExecutor(new DefaultRemoteInvocationExecutor() {
View Full Code Here

Examples of org.logicblaze.lingo.beans.TestBean

        assertEquals("myname", proxy.getName());
        assertEquals(99, proxy.getAge());
    }

    public void testJmsProxyFactoryBeanAndServiceExporterWithCustomInvocationObject() throws Exception {
        TestBean target = new TestBean("myname", 99);
        final JmsServiceExporter exporter = new JmsServiceExporter();
        exporter.setServiceInterface(ITestBean.class);
        exporter.setService(target);
        exporter.setProducer(createJmsProducer());
        exporter.setRemoteInvocationExecutor(new DefaultRemoteInvocationExecutor() {
View Full Code Here

Examples of org.milyn.routing.jms.TestBean

  @Test
  public void createJMSMessage() throws ParserConfigurationException, JMSException, SAXException, IOException
  {
    final String beanId = "123";
    final TestBean bean = RouterTestHelper.createBean();
        MockExecutionContext executionContext = RouterTestHelper.createExecutionContext( beanId, bean );

        Message message = strategy.createJMSMessage( beanId, executionContext, jmsSession ) ;

        assertTrue ( message instanceof TextMessage );

        TextMessage textMessage = (TextMessage) message;
        assertEquals( bean.toString(), textMessage.getText() );

  }
View Full Code Here

Examples of org.springframework.beans.TestBean

    this.listableBeanFactory = child;
  }

  public void testHierarchicalCountBeansWithNonHierarchicalFactory() {
    StaticListableBeanFactory lbf = new StaticListableBeanFactory();
    lbf.addBean("t1", new TestBean());
    lbf.addBean("t2", new TestBean());
    assertTrue(BeanFactoryUtils.countBeansIncludingAncestors(lbf) == 2);
  }
View Full Code Here

Examples of org.springframework.binding.expression.el.TestBean

  }

  public void testParseBeanEvalExpressionNoParserContext() {
    String expressionString = "value";
    Expression exp = parser.parseExpression(expressionString, null);
    assertEquals("foo", exp.getValue(new TestBean()));
  }
View Full Code Here

Examples of org.springframework.binding.support.TestBean

        tb = (JToggleButton) tbb.getControl();
        return "booleanProperty";
    }

    public void testInitialValue() {
        TestBean bean = new TestBean();
        bean.setBooleanProperty(true);
        FormModel fm = new DefaultFormModel(bean);
        ToggleButtonBinding binding = new ToggleButtonBinding(new JToggleButton(), fm, "booleanProperty");
        JToggleButton control = (JToggleButton) binding.getControl();
        assertEquals(true, control.isSelected());
    }
View Full Code Here

Examples of org.springframework.richclient.form.builder.TestBean

   */
    public void testProcessComponent() throws InterruptedException {
      if (GraphicsEnvironment.isHeadless()) {
      return;
    }
        TestBean bean = new TestBean();
        bean.setProperty("original value");

        FormModel formModel = new DefaultFormModel(bean);

        DirtyIndicatorInterceptor interceptor = new DirtyIndicatorInterceptor(formModel);
        assertEquals(formModel, interceptor.getFormModel());
View Full Code Here

Examples of org.springframework.tests.sample.beans.TestBean

      return TestBean.class.isAssignableFrom(clazz);
    }

    @Override
    public void validate(Object obj, Errors errors) {
      TestBean tb = (TestBean) obj;
      if (tb == null || "XXX".equals(tb.getName())) {
        errors.rejectValue("", "SPOUSE_NOT_AVAILABLE");
        return;
      }
      if (tb.getAge() < 32) {
        errors.rejectValue("age", "TOO_YOUNG", "simply too young");
      }
    }
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.