Package org.apache.axis2.jaxws.description.builder.converter

Examples of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter


        boolean respect = ed.respectBinding();
        assertFalse("Strict binding support should be DISABLED.", respect);
    }
   
    public void testRespectBindingDefault() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(DefaultService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(DefaultService.class.getName());
       
        URL wsdlUrl = new URL("file:./" + wsdlLocation);
        WSDL4JWrapper wrapper = new WSDL4JWrapper(wsdlUrl, false, 0);
View Full Code Here


       
        assertTrue("The ServiceDescriptions should not have been built.", sdList == null);
    }
   
    public void testRespectBindingComplete() throws Exception {
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(CompleteService.class);
        HashMap<String, DescriptionBuilderComposite> map = converter.produceDBC();
       
        DescriptionBuilderComposite composite = map.get(CompleteService.class.getName());
       
       
        //Register
View Full Code Here

public class ValidateServiceImplTests extends TestCase {

    public void testValidServiceImpl() {
        try {
            Class serviceImplClass = ServiceImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            assertNotNull(serviceDescList);
            assertEquals(1, serviceDescList.size());
        }
        catch (Exception e) {
View Full Code Here

    }
   
    public void testMissingMethods() {
        try {
            Class serviceImplClass = MissingMethodsImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

    }
   
    public void testInvalidThrows() {
        try {
            Class serviceImplClass = InvalidThrowsImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

    }
   
    public void testMismatchedReturnTypesDBC() {
        try {
            Class serviceImplClass = ServiceImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            // Set the return types for one of the methods on the impl class to mismatch the SEI
            DescriptionBuilderComposite implDBC = dbcMap.get("org.apache.axis2.jaxws.description.ServiceImpl");
            assertNotNull(implDBC);
            List<MethodDescriptionComposite> m1MDCList = implDBC.getMethodDescriptionComposite("method1");
            assertNotNull(m1MDCList);
View Full Code Here

    }

    public void testMismatchedReturnTypes() {
        try {
            Class serviceImplClass = MismatchedReturnTypesImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

    }

    public void testMismatchedParameterNumber() {
        try {
            Class serviceImplClass = MismatchedParameterNumberImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

    }

    public void testMismatchedParameterTypes() {
        try {
            Class serviceImplClass = MismatchedParameterTypesImpl.class;
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList =  DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
            fail("Should have caused exception");
        }
        catch (Exception e) {
            // Expected path
View Full Code Here

        } else {
            protocolBinding = getBindingFromWSDL(port);
        }
       
        Class endPointClass = classLoader.loadClass(endpointClassName);
        JavaClassToDBCConverter converter = new JavaClassToDBCConverter(endPointClass);
        HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
      
        DescriptionBuilderComposite dbc = dbcMap.get(endpointClassName);
        dbc.setClassLoader(classLoader);
        dbc.setWsdlDefinition(wsdlDefinition);
        dbc.setClassName(endpointClassName);
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter

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.