Package org.apache.ode.utils

Examples of org.apache.ode.utils.Properties$Axis2


    public static String ERROR_MSG = "Input values do not follow defined XSD restrictions";

    public void testDefaultStringElement1() throws Exception {
        DefaultStringElement defaultElement = new DefaultStringElement();
        DefaultString defaultString = new DefaultString();
        defaultString.setMsg("XYZ");
        defaultElement.setDefaultStringElement(defaultString);
        OMElement omElement = defaultElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here


                OMAbstractFactory.getSOAP11Factory());
    }

    public void testDefaultStringElement2() throws Exception {
        DefaultStringElement defaultElement = new DefaultStringElement();
        DefaultString defaultString = new DefaultString();
        defaultString.setMsg("XYZ");
        defaultElement.setDefaultStringElement(defaultString);
        OMElement omElement = defaultElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

public class DefaultValueTest extends TestCase {

    public static String ERROR_MSG = "Input values do not follow defined XSD restrictions";

    public void testDefaultStringElement1() throws Exception {
        DefaultStringElement defaultElement = new DefaultStringElement();
        DefaultString defaultString = new DefaultString();
        defaultString.setMsg("XYZ");
        defaultElement.setDefaultStringElement(defaultString);
        OMElement omElement = defaultElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

        OMElement omElement = defaultElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }

    public void testDefaultStringElement2() throws Exception {
        DefaultStringElement defaultElement = new DefaultStringElement();
        DefaultString defaultString = new DefaultString();
        defaultString.setMsg("XYZ");
        defaultElement.setDefaultStringElement(defaultString);
        OMElement omElement = defaultElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

    public void testDefaultStringElementParse1() throws Exception {
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "defaultStringElement"));
        OMElement msg = factory.createOMElement(new QName("", "msg"));
        element.addChild(msg);
        DefaultStringElement defaultStringElement = DefaultStringElement.Factory.parse(element
                .getXMLStreamReader());
        assertNotNull(defaultStringElement.getDefaultStringElement().getMsg());
        assertEquals("", defaultStringElement.getDefaultStringElement().getMsg());
    }
View Full Code Here

        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "defaultStringElement"));
        OMElement msg = factory.createOMElement(new QName("", "msg"));
        msg.setText("xyz");
        element.addChild(msg);
        DefaultStringElement defaultStringElement = DefaultStringElement.Factory.parse(element
                .getXMLStreamReader());
        System.out.println(defaultStringElement.getDefaultStringElement().getMsg());
        assertNotNull(defaultStringElement.getDefaultStringElement().getMsg());
        assertEquals("xyz", defaultStringElement.getDefaultStringElement().getMsg());

    }
View Full Code Here

    }

    public void testDefaultStringElementParse3() throws Exception {
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "defaultStringElement"));
        DefaultStringElement defaultStringElement = DefaultStringElement.Factory.parse(element
                .getXMLStreamReader());
        assertNotNull(defaultStringElement.getDefaultStringElement().getMsg());
        assertEquals("ABC", defaultStringElement.getDefaultStringElement().getMsg());

    }
View Full Code Here

    public static String ERROR_MSG = "Input values do not follow defined XSD restrictions";

    public void testFixedStringElement1() throws Exception {
        FixedStringElement fixElement = new FixedStringElement();
        FixedString fixedString = new FixedString();
        fixedString.setMsg("XYZ");
        fixElement.setFixedStringElement(fixedString);
        OMElement omElement = fixElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

                OMAbstractFactory.getSOAP11Factory());
    }

    public void testFixedStringElement2() throws Exception {
        FixedStringElement fixElement = new FixedStringElement();
        FixedString fixedString = new FixedString();
        fixedString.setMsg("");
        fixElement.setFixedStringElement(fixedString);
        OMElement omElement = fixElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

                OMAbstractFactory.getSOAP11Factory());
    }

    public void testFixedStringElement3() throws Exception {
        FixedStringElement fixElement = new FixedStringElement();
        FixedString fixedString = new FixedString();
        fixedString.setMsg("");
        fixElement.setFixedStringElement(fixedString);
        OMElement omElement = fixElement.getOMElement(FixedStringElement.MY_QNAME,
                OMAbstractFactory.getSOAP11Factory());
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.utils.Properties$Axis2

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.