Examples of ExampleDomainObject


Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

    @Test
    public void testGlobalTransformer3() throws SQLException {

        // test void result
        final GlobalTransformedObject transformed = exampleSProcService.testGlobalTransformer3(
                new GlobalTransformedObject("global transformed value"), new ExampleDomainObject("EDO a", "EDO b"));

        assertEquals("global transformed value:b:EDO aEDO b", transformed.getValue());
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

        // test void result
        final List<GlobalTransformedObject> transformed = exampleSProcService.testGlobalTransformer4(Lists.newArrayList(
                    new GlobalTransformedObject("global transformed value 1"),
                    new GlobalTransformedObject("global transformed value 2")),
                new ExampleDomainObject("EDO a", "EDO b"));

        assertNotNull(transformed);
        assertEquals(2, transformed.size());
        assertEquals("global transformed value 1", transformed.get(0).getValue());
        assertEquals("global transformed value 2", transformed.get(1).getValue());
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

    public void testObjectParam() {

        String result = exampleSProcService.createOrUpdateObject(null);
        assertEquals(null, result);

        final ExampleDomainObject obj = new ExampleDomainObject("a", "b");
        result = exampleSProcService.createOrUpdateObject(obj);
        assertEquals("a b", result);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

        assertEquals("", result);

        result = exampleSProcService.createOrUpdateMultipleObjects(new ArrayList<ExampleDomainObject>());
        assertEquals("", result);

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

        result = exampleSProcService.createOrUpdateMultipleObjects(list);
        assertEquals("a_b,c_d,", result);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

        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.ExampleDomainObject

    public void testReturnDomainObjectWithEmbed() {
        ExampleDomainObjectWithEmbed result = exampleSProcService.getEntityWithEmbed();
        assertNotNull(result);
        assertEquals("x", result.getX());

        ExampleDomainObject y = result.getY();
        assertNotNull(y);
        assertEquals("a", y.getA());
        assertEquals("b", y.getB());
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

    public void testReturnDomainObjectWithEmbedEmptyString() {
        ExampleDomainObjectWithEmbed result = exampleSProcService.getEntityWithEmbedEmptyString();
        assertNotNull(result);
        assertEquals("x", result.getX());

        ExampleDomainObject y = result.getY();
        assertNotNull(y);
        assertNull(y.getA());
        assertEquals("", y.getB());
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

    public void testReturnDomainObjectWithEmbedNullFields() {
        ExampleDomainObjectWithEmbed result = exampleSProcService.getEntityWithEmbedNullFields();
        assertNotNull(result);
        assertEquals("x", result.getX());

        ExampleDomainObject y = result.getY();
        assertNotNull(y);
        assertNull(y.getA());
        assertNull(y.getB());
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

        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

Examples of de.zalando.sprocwrapper.example.ExampleDomainObject

    public void testListComplexObjects() {
        List<ExampleDomainObject> result = exampleSProcService.getListComplexObjects();
        Assert.assertNotNull(result);
        Assert.assertEquals(3, result.size());

        ExampleDomainObject obj = result.get(0);
        Assert.assertNotNull(obj);
        Assert.assertEquals(obj.getA(), "a1");
        Assert.assertEquals(obj.getB(), "b1");

        obj = result.get(1);
        Assert.assertNotNull(obj);
        Assert.assertEquals(obj.getA(), "a2");
        Assert.assertEquals(obj.getB(), "b2");

        obj = result.get(2);
        Assert.assertNotNull(obj);
        Assert.assertEquals(obj.getA(), "a3");
        Assert.assertEquals(obj.getB(), "b3");
    }
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.