Examples of ExampleDomainObjectWithInnerObject


Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithInnerObject

        result = exampleSProcService.createOrUpdateMultipleObjectsWithInnerObject(
                new ArrayList<ExampleDomainObjectWithInnerObject>());
        assertNull(result);

        final ExampleDomainObjectWithInnerObject obj = new ExampleDomainObjectWithInnerObject("a", null);
        final List<ExampleDomainObjectWithInnerObject> list = new ArrayList<ExampleDomainObjectWithInnerObject>();
        list.add(obj);
        list.add(new ExampleDomainObjectWithInnerObject("c", new ExampleDomainObject("d", "e")));

        result = exampleSProcService.createOrUpdateMultipleObjectsWithInnerObject(list);
        assertEquals("<c_d|e>", result);

        obj.setC(new ArrayList<ExampleDomainObject>());
        obj.getC().add(new ExampleDomainObject("f", "g"));
        result = exampleSProcService.createOrUpdateMultipleObjectsWithInnerObject(list);
        assertEquals("<c_d|e>", result);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithInnerObject

        assertEquals(timeout, timeout3);
    }

    @Test
    public void testNullObject() {
        final ExampleDomainObjectWithInnerObject obj = exampleSProcService.getObjectWithNull();

        assertEquals(null, obj.getC());
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithInnerObject

        assertEquals("example2complexfield2", object2.getExample2Field2());
    }

    @Test
    public void testReturnDomainObjectWithNullInnerObject() {
        ExampleDomainObjectWithInnerObject result = exampleSProcService.getEntityWithNullInnerObject();
        assertNotNull(result);

        assertEquals("a", result.getA());

        ExampleDomainObject b = result.getB();
        assertNotNull(b);
        assertNull(b.getA());
        assertNull(b.getB());

        assertNull(result.getC());
    }
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.