Examples of buildConfigurationContext()


Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

        if (!file.exists()) {
            throw new Exception(
                    "repository directory " + file.getAbsolutePath() +
                            " does not exists");
        }
        return erfac.buildConfigurationContext(
                file.getAbsolutePath());
    }

}
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
    }

    public void testServiceGroup() throws AxisFault {
        AxisServiceGroup sgd = ar.getServiceGroup("serviceGroup");
        assertNotNull(sgd);
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

public class AxisMessageTest extends TestCase {

    public void testAxisMessage() throws Exception {
        String filename = "./test-resources/deployment/AxisMessageTestRepo";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        AxisConfiguration er = builder.buildConfigurationContext(filename)
                .getAxisConfiguration();

        assertNotNull(er);
        AxisService service = er.getService("MessagetestService");
        assertNotNull(service);
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public void testDeployment() {
        try {
            String filename = "./target/test-resources/deployment";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            AxisConfiguration er = builder.buildConfigurationContext(filename)
                    .getAxisConfiguration();

            assertNotNull(er);
            AxisService service = er.getService("service2");
            assertNotNull(service);
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public void testInvalidService() {
        try {
            String filename = "./target/test-resources/InvalidDeployment";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er =
                    builder.buildConfigurationContext(filename)
                    .getAxisConfiguration();
            String msg = (String) er.getFaultyServices().get("invalidService");
            if (msg == null || msg.equals("")) {
                fail("this must failed gracefully with AxisFault ervice specifi module can not" +
                        "refer system pre defined phases");
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ac =
                builder.buildConfigurationContext(filename)
                .getAxisConfiguration();
        ModuleDescription module = ac.getModule(new QName("module1"));
        assertNotNull(module);
        ac.engageModule(new QName("module1"));
        AxisService service = ac.getService("service2");
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        er =
                builder.buildConfigurationContext(filename)
                .getAxisConfiguration();
    }

}
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public void testPhaseOrderchage() {
        try {
            String filename = "./test-resources/deployment/SystemPhaseRemove";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er =
                    builder.buildConfigurationContext(filename)
                    .getAxisConfiguration();
            fail(
                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
        } catch (DeploymentException e) {
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public void testPhaseOrderchage() {
        try {
            String filename = "./test-resources/deployment/BadConfigOrderChange";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
            fail(
                    "this must failed gracefully with DeploymentException \"Invalid System predefined " +
                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
        } catch (DeploymentException e) {
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    String repo ="./test-resources/deployment/ServiceGroup";


    public void testServiceGroup() throws AxisFault {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
        AxisService servie = ar.getService("serevice1");
        assertNotNull(servie);
        servie = ar.getService("serevice4");
        assertNotNull(servie);
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.