Package org.apache.ode.axis2

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


public class FixedValueTest extends TestCase {

    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


        OMElement omElement = fixElement.getOMElement(FixedStringElement.MY_QNAME,
                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

        OMElement omElement = fixElement.getOMElement(FixedStringElement.MY_QNAME,
                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

        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "fixedStringElement"));
        OMElement msg = factory.createOMElement(new QName("", "msg"));
        msg.setText("xyz");
        element.addChild(msg);
        FixedStringElement fixedStringElement = FixedStringElement.Factory.parse(element
                .getXMLStreamReader());
        assertNotNull(fixedStringElement.getFixedStringElement().getMsg());
        assertEquals("ABC", fixedStringElement.getFixedStringElement().getMsg());
        assertFalse("xyz".equalsIgnoreCase(fixedStringElement.getFixedStringElement().getMsg()));

    }
View Full Code Here

        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "fixedStringElement"));
        OMElement msg = factory.createOMElement(new QName("", "msg"));
        msg.setText("");
        element.addChild(msg);
        FixedStringElement fixedStringElement = FixedStringElement.Factory.parse(element
                .getXMLStreamReader());
        assertNotNull(fixedStringElement.getFixedStringElement().getMsg());
        assertEquals("ABC", fixedStringElement.getFixedStringElement().getMsg());
        assertFalse("".equalsIgnoreCase(fixedStringElement.getFixedStringElement().getMsg()));

    }
View Full Code Here

    public void testFixedStringElementParse3() throws Exception {
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMElement element = factory.createOMElement(new QName("", "fixedStringElement"));
        OMElement msg = factory.createOMElement(new QName("", "msg"));
        element.addChild(msg);
        FixedStringElement fixedStringElement = FixedStringElement.Factory.parse(element
                .getXMLStreamReader());
        assertNotNull(fixedStringElement.getFixedStringElement().getMsg());
        assertEquals("ABC", fixedStringElement.getFixedStringElement().getMsg());
        assertFalse(fixedStringElement.getFixedStringElement().getMsg() == null);

    }
View Full Code Here

        Property[] properties = new Property[3];
        properties[0] = new Property(SystemStatistics.ORGANIZATION_COUNT.name(), Long.toString(organizationService.countAll()), SystemStatistics.ORGANIZATION_COUNT.getDescription());
        properties[1] = new Property(SystemStatistics.USER_COUNT.name(), Long.toString(userService.countAll()), SystemStatistics.USER_COUNT.getDescription());
        properties[2] = new Property(SystemStatistics.APPLICATION_COUNT.name(), Long.toString(applicationService.countAll()), SystemStatistics.APPLICATION_COUNT.getDescription());

        Properties props = new Properties();
        props.setProperties(properties);

        return props;
    }
View Full Code Here

        super.stop();
        _odeServer.shutDown();
    }

    protected ODEServer createODEServer() {
        return new ODEServer();
    }
View Full Code Here

        super.stop();
        _odeServer.shutDown();
    }

    protected ODEServer createODEServer() {
        return new ODEServer();
    }
View Full Code Here

            }
            AxisEngine engine = new AxisEngine(
                    msgContext.getOperationContext().getServiceContext().getConfigurationContext());
            engine.send(outMsgContext);
        } catch (IllegalAccessException e) {
            throw new OdeFault("Couldn't invoke method named " + methodName + " in management interface!", e);
        } catch (InvocationTargetException e) {
            throw new OdeFault("Invocation of method " + methodName + " in management interface failed!", e.getTargetException());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.axis2.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.