Package org.apache.axis2.rmi.metadata

Examples of org.apache.axis2.rmi.metadata.Operation


    public void testMethod2() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method2");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new Integer(3));
            Object[] objects = getInputObject(inputObjects, operation);

            Integer object = (Integer) operation.getJavaMethod().invoke(this.serviceObject, objects);
            Integer returnObject = (Integer) getReturnObject(object, operation);

            assertEquals(returnObject.intValue(), 3);
        } catch (Exception e) {
            fail();
View Full Code Here


    public void testMethod31() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method3");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(null);
            Object[] objects = getInputObject(inputObjects, operation);

            Object object = operation.getJavaMethod().invoke(this.serviceObject, objects);
            Object returnObject = getReturnObject(object, operation);

            assertNull(returnObject);
        } catch (Exception e) {
            fail();
View Full Code Here

    public void testMethod32() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method3");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add("test String");
            Object[] objects = getInputObject(inputObjects, operation);

            String object = (String) operation.getJavaMethod().invoke(this.serviceObject, objects);
            String returnObject = (String) getReturnObject(object, operation);

            assertEquals(returnObject, "test String");
        } catch (Exception e) {
            fail();
View Full Code Here

    public void testMethod41() {
        try {
            // first create service data

            Operation operation = this.service.getOperation("method4");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new int[]{2, 3, 5});
            Object[] objects = getInputObject(inputObjects, operation);

            int[] object = (int[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            int[] returnObject = (int[]) getReturnObject(object, operation);

            assertEquals(returnObject[0], 2);
            assertEquals(returnObject[1], 3);
            assertEquals(returnObject[2], 5);
View Full Code Here

    public void testMethod42() {
        try {
            // first create service data

            Operation operation = this.service.getOperation("method4");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(null);
            Object[] objects = getInputObject(inputObjects, operation);

            int[] object = (int[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            int[] returnObject = (int[]) getReturnObject(object, operation);

            assertNull(returnObject);
        } catch (Exception e) {
            fail();
View Full Code Here

    public void testMethod51() {
        try {
            // first create service data

            Operation operation = this.service.getOperation("method5");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new String[]{"string1", "string2", "string3"});
            Object[] objects = getInputObject(inputObjects, operation);

            String[] object = (String[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            String[] returnObject = (String[]) getReturnObject(object, operation);

            assertEquals(returnObject[0], "string1");
            assertEquals(returnObject[1], "string2");
            assertEquals(returnObject[2], "string3");
View Full Code Here

    public void testMethod52() {
        try {
            // first create service data

            Operation operation = this.service.getOperation("method5");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new String[]{null, "string2", null, "string4"});
            Object[] objects = getInputObject(inputObjects, operation);

            String[] object = (String[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            String[] returnObject = (String[]) getReturnObject(object, operation);

            assertEquals(returnObject[0], null);
            assertEquals(returnObject[1], "string2");
            assertEquals(returnObject[2], null);
View Full Code Here

    public void testMethod1() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method1");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1());
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1 object = (TestClass1) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1 returnObject = (TestClass1) getReturnObject(object, operation);

            assertNotNull(returnObject);
        } catch (Exception e) {
            fail();
View Full Code Here

    public void testMethod21() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method2");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1[]{new TestClass1(), new TestClass1()});
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1[] object = (TestClass1[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1[] returnObject = (TestClass1[]) getReturnObject(object, operation);

            assertNotNull(returnObject[0]);
            assertNotNull(returnObject[1]);
        } catch (Exception e) {
View Full Code Here

    public void testMethod22() {

        try {
            // first create service data

            Operation operation = this.service.getOperation("method2");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1[]{new TestClass1(), null, new TestClass1()});
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1[] object = (TestClass1[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1[] returnObject = (TestClass1[]) getReturnObject(object, operation);

            assertNotNull(returnObject[0]);
            assertNull(returnObject[1]);
            assertNotNull(returnObject[2]);
View Full Code Here

TOP

Related Classes of org.apache.axis2.rmi.metadata.Operation

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.