Examples of DummyBean


Examples of org.apache.camel.spring.example.DummyBean

    public void testEndpointConfiguration() throws Exception {
        Endpoint endpoint = getMandatoryBean(Endpoint.class, "endpoint1");

        assertEquals("endpoint URI", "direct:start", endpoint.getEndpointUri());

        DummyBean dummyBean = getMandatoryBean(DummyBean.class, "mybean");
        assertNotNull("The bean should have an endpoint injected", dummyBean.getEndpoint());
        assertEquals("endpoint URI", "direct:start", dummyBean.getEndpoint().getEndpointUri());

        log.debug("Found dummy bean: " + dummyBean);

        MockEndpoint resultEndpoint = getMockEndpoint("mock:end");
        resultEndpoint.expectedBodiesReceived(body);
View Full Code Here

Examples of org.apache.camel.spring.example.DummyBean

    public void testEndpointConfiguration() throws Exception {
        Endpoint endpoint = getMandatoryBean(Endpoint.class, "endpoint1");

        assertEquals("endpoint URI", "direct://start", endpoint.getEndpointUri());

        DummyBean dummyBean = getMandatoryBean(DummyBean.class, "mybean");
        assertNotNull("The bean should have an endpoint injected", dummyBean.getEndpoint());
        assertEquals("endpoint URI", "direct://start", dummyBean.getEndpoint().getEndpointUri());

        log.debug("Found dummy bean: " + dummyBean);

        MockEndpoint resultEndpoint = getMockEndpoint("mock:end");
        resultEndpoint.expectedBodiesReceived(body);
View Full Code Here

Examples of org.apache.camel.spring.example.DummyBean

    public void testEndpointConfiguration() throws Exception {
        Endpoint endpoint = getMandatoryBean(Endpoint.class, "endpoint1");

        assertEquals("endpoint URI", "direct:start", endpoint.getEndpointUri());

        DummyBean dummyBean = getMandatoryBean(DummyBean.class, "mybean");
        assertNotNull("The bean should have an endpoint injected", dummyBean.getEndpoint());
        assertEquals("endpoint URI", "direct:start", dummyBean.getEndpoint().getEndpointUri());

        log.debug("Found dummy bean: " + dummyBean);

        MockEndpoint resultEndpoint = getMockEndpoint("mock:end");
        resultEndpoint.expectedBodiesReceived(body);
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.DummyBean

   
   
    @Test
    public void testSimpleMethodInvocation() throws Exception
    {
        DummyBean dummyBean = new DummyBean();
       
        facesContext.getExternalContext().getRequestMap().put("dummyBean",
                dummyBean);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.DummyBean

   
   
    @Test
    public void testSimpleMethodInvocation() throws Exception
    {
        DummyBean dummyBean = new DummyBean();
       
        facesContext.getExternalContext().getRequestMap().put("dummyBean",
                dummyBean);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.DummyBean

   
   
    @Test
    public void testSimpleMethodInvocation() throws Exception
    {
        DummyBean dummyBean = new DummyBean();
       
        facesContext.getExternalContext().getRequestMap().put("dummyBean",
                dummyBean);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

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

  @Test
  public void simpleValue() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    String name = "simple";
    //    beanFactory.getBean("simple1", DummyBean.class);
    DummyBean nameValue = beanFactory.getBean(name, DummyBean.class);
    assertEquals("simple", nameValue.getValue());
  }
View Full Code Here

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

  @Test
  public void simpleRef() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    String name = "simple-ref";
    //    beanFactory.getBean("name-value1", TestBean.class);
    DummyBean nameValue = beanFactory.getBean(name, DummyBean.class);
    assertEquals(beanFactory.getBean("name"), nameValue.getValue());
  }
View Full Code Here

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

  @Test
  public void nameRef() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    TestBean nameValue = beanFactory.getBean("name-value", TestBean.class);
    DummyBean nameRef = beanFactory.getBean("name-ref", DummyBean.class);

    assertEquals("some-name", nameRef.getName());
    assertEquals(nameValue, nameRef.getSpouse());
  }
View Full Code Here

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

  }

  @Test
  public void typeIndexedValue() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    DummyBean typeRef = beanFactory.getBean("indexed-value", DummyBean.class);

    assertEquals("at", typeRef.getName());
    assertEquals("austria", typeRef.getValue());
    assertEquals(10, typeRef.getAge());
  }
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.