Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContextFactory


    }


    public void testModuleConfigAtService() {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ar = builder.createConfigurationContextFromFileSystem(repo).getAxisConfiguration();


            AxisService service = new AxisService();
            service.setName("testService");
            ar.addService(service);
View Full Code Here


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



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.createConfigurationContextFromFileSystem(repo).getAxisConfiguration();
    }
View Full Code Here

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



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.createConfigurationContextFromFileSystem(repo).getAxisConfiguration();
    }
View Full Code Here

public class AxisMessageTest extends TestCase {

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

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

    }

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

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

    public void testModuleEngageMent() throws PhaseException,
            DeploymentException,
            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ac =
                builder.createConfigurationContextFromFileSystem(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

    AxisConfiguration er;

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

    public void testparseService1() throws PhaseException,
            DeploymentException,
            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        er =
                builder.createConfigurationContextFromFileSystem(filename)
                .getAxisConfiguration();
    }
View Full Code Here

public class ModuleversionTest extends TestCase {

    public void testDefautModuleVersion() throws AxisFault {
        String filename = "./test-resources/deployment/moduleVersion/Test1";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        AxisConfiguration ac = builder.createConfigurationContextFromFileSystem(filename)
                .getAxisConfiguration();
        assertNotNull(ac);
        assertEquals(ac.getDefaultModuleVersion("abc"), "1.23");
        assertEquals(ac.getDefaultModuleVersion("foo"), "0.89");
    }
View Full Code Here

        boolean repository = false;
        if (args.length > 2) repository = true;
        try {
            ServiceClient serviceClient;
            if (repository) {
                ConfigurationContextFactory fac =
                        new ConfigurationContextFactory();
                ConfigurationContext configContext =
                        fac.createConfigurationContextFromFileSystem(args[2]);
                serviceClient = new ServiceClient(configContext, null);
            } else {
                serviceClient = new ServiceClient();
            }
View Full Code Here

TOP

Related Classes of org.apache.axis2.context.ConfigurationContextFactory

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.