Package org.apache.cxf.transport.http.spring

Examples of org.apache.cxf.transport.http.spring.HttpDestinationBeanDefinitionParser


public class BeanDefinitionParsersTest extends Assert {
    @Test
    public void testDest()throws Exception {
        BeanDefinitionBuilder bd = BeanDefinitionBuilder.childBeanDefinition("child");
       
        HttpDestinationBeanDefinitionParser parser = new HttpDestinationBeanDefinitionParser();

        Document d = DOMUtils.readXml(getClass().getResourceAsStream("destination.xml"));
        parser.doParse(d.getDocumentElement(), bd);
       
        PropertyValue[] pvs = bd.getRawBeanDefinition().getPropertyValues().getPropertyValues();
        assertEquals(2, pvs.length);
        assertEquals("foobar", ((HTTPServerPolicy) pvs[0].getValue()).getContentEncoding());
        assertEquals("exact", pvs[1].getValue());
View Full Code Here


public class BeanDefinitionParsersTest extends Assert {
    @Test
    public void testDest()throws Exception {
        BeanDefinitionBuilder bd = BeanDefinitionBuilder.childBeanDefinition("child");
       
        HttpDestinationBeanDefinitionParser parser = new HttpDestinationBeanDefinitionParser();

        Document d = StaxUtils.read(getClass().getResourceAsStream("destination.xml"));
        parser.doParse(d.getDocumentElement(), null, bd);
       
        PropertyValue[] pvs = bd.getRawBeanDefinition().getPropertyValues().getPropertyValues();
        assertEquals(2, pvs.length);
        assertEquals("foobar", ((HTTPServerPolicy) pvs[0].getValue()).getContentEncoding());
        assertEquals("exact", pvs[1].getValue());
View Full Code Here

public class BeanDefinitionParsersTest extends Assert {
    @Test
    public void testDest()throws Exception {
        BeanDefinitionBuilder bd = BeanDefinitionBuilder.childBeanDefinition("child");
       
        HttpDestinationBeanDefinitionParser parser = new HttpDestinationBeanDefinitionParser();

        Document d = DOMUtils.readXml(getClass().getResourceAsStream("destination.xml"));
        parser.doParse(d.getDocumentElement(), null, bd);
       
        PropertyValue[] pvs = bd.getRawBeanDefinition().getPropertyValues().getPropertyValues();
        assertEquals(2, pvs.length);
        assertEquals("foobar", ((HTTPServerPolicy) pvs[0].getValue()).getContentEncoding());
        assertEquals("exact", pvs[1].getValue());
View Full Code Here

public class BeanDefinitionParsersTest extends Assert {
    @Test
    public void testDest()throws Exception {
        BeanDefinitionBuilder bd = BeanDefinitionBuilder.childBeanDefinition("child");
       
        HttpDestinationBeanDefinitionParser parser = new HttpDestinationBeanDefinitionParser();

        Document d = DOMUtils.readXml(getClass().getResourceAsStream("destination.xml"));
        parser.doParse(d.getDocumentElement(), null, bd);
       
        PropertyValue[] pvs = bd.getRawBeanDefinition().getPropertyValues().getPropertyValues();
        assertEquals(2, pvs.length);
        assertEquals("foobar", ((HTTPServerPolicy) pvs[0].getValue()).getContentEncoding());
        assertEquals("exact", pvs[1].getValue());
View Full Code Here

public class BeanDefinitionParsersTest extends Assert {
    @Test
    public void testDest()throws Exception {
        BeanDefinitionBuilder bd = BeanDefinitionBuilder.childBeanDefinition("child");
       
        HttpDestinationBeanDefinitionParser parser = new HttpDestinationBeanDefinitionParser();

        Document d = DOMUtils.readXml(getClass().getResourceAsStream("destination.xml"));
        parser.doParse(d.getDocumentElement(), null, bd);
       
        PropertyValue[] pvs = bd.getRawBeanDefinition().getPropertyValues().getPropertyValues();
        assertEquals(2, pvs.length);
        assertEquals("foobar", ((HTTPServerPolicy) pvs[0].getValue()).getContentEncoding());
        assertEquals("exact", pvs[1].getValue());
View Full Code Here

TOP

Related Classes of org.apache.cxf.transport.http.spring.HttpDestinationBeanDefinitionParser

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.