Package org.springframework.integration.xquery.transformer

Examples of org.springframework.integration.xquery.transformer.XQueryTransformer


  }

  @Test
  public void transformerTwo() {
    setUp("xqueryTransformerTwo");
    XQueryTransformer transformer = TestUtils.getPropertyValue(consumer, "handler.transformer", XQueryTransformer.class);
    Assert.assertNotNull(TestUtils.getPropertyValue(transformer, "executor.xQuery", String.class));
    Assert.assertEquals(DummyXQDataSource.class,
        TestUtils.getPropertyValue(transformer, "executor.xqDataSource", XQDataSource.class).getClass());
    Assert.assertEquals(DummyXmlPayloadConverter.class,
        TestUtils.getPropertyValue(transformer,"executor.converter",XmlPayloadConverter.class).getClass());
View Full Code Here


  }

  @Test
  public void transformerThree() {
    setUp("xqueryTransformerThree");
    XQueryTransformer transformer = TestUtils.getPropertyValue(consumer, "handler.transformer", XQueryTransformer.class);
    Assert.assertNotNull(TestUtils.getPropertyValue(transformer, "executor.xQuery", String.class));
    Assert.assertEquals(ClassPathResource.class, TestUtils.getPropertyValue(transformer, "executor.xQueryFileResource",Resource.class).getClass());
    destroy();
  }
View Full Code Here

  }

  @Test
  public void booleanTypeResult() {
    setUp("booleanResultTypeTransformer");
    XQueryTransformer transformer = TestUtils.getPropertyValue(consumer, "handler.transformer", XQueryTransformer.class);
    Assert.assertEquals(Boolean.class, TestUtils.getPropertyValue(transformer, "resultType", Class.class));
  }
View Full Code Here

  }

  @Test
  public void stringTypeResult() {
    setUp("stringResultTypeTransformer");
    XQueryTransformer transformer = TestUtils.getPropertyValue(consumer, "handler.transformer", XQueryTransformer.class);
    Assert.assertEquals(String.class, TestUtils.getPropertyValue(transformer, "resultType", Class.class));
  }
View Full Code Here

  }

  @Test
  public void resultMapperProvided() {
    setUp("customXQueryResultMapper");
    XQueryTransformer transformer = TestUtils.getPropertyValue(consumer, "handler.transformer", XQueryTransformer.class);
    Assert.assertEquals(DummyXQueryResultMapper.class, TestUtils.getPropertyValue(transformer, "resultMapper", XQueryResultMapper.class).getClass());
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.xquery.transformer.XQueryTransformer

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.