Examples of GlobalTransformedObject


Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @Test
    public void testGlobalTransformer() throws SQLException {

        // test void result
        final ExampleDomainObjectWithGlobalTransformer transformed = exampleSProcService.testGlobalTransformer(
                new ExampleDomainObjectWithGlobalTransformer("123", new GlobalTransformedObject("hallo"),
                    Lists.newArrayList(new GlobalTransformedObject("list element 1"),
                        new GlobalTransformedObject("list element 2")),
                    Sets.newHashSet(new GlobalTransformedObject("set element 1"),
                        new GlobalTransformedObject("set element 2"))));

        assertEquals("123", transformed.getA());
        assertEquals("hallo", transformed.getB().getValue());
        Assert.assertTrue(transformed.getC().contains(new GlobalTransformedObject("list element 1")));
        Assert.assertTrue(transformed.getC().contains(new GlobalTransformedObject("list element 2")));
        Assert.assertTrue(transformed.getD().contains(new GlobalTransformedObject("set element 1")));
        Assert.assertTrue(transformed.getD().contains(new GlobalTransformedObject("set element 2")));
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @Test
    public void testGlobalTransformer2() throws SQLException {

        // test void result
        final GlobalTransformedObject transformed = exampleSProcService.testGlobalTransformer2(
                new GlobalTransformedObject("global transformed value"));

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

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @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.GlobalTransformedObject

    @Test
    public void testGlobalTransformer4() throws SQLException {

        // 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());
View Full Code Here

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @Test
    public void testGlobalTransformer5() throws SQLException {

        // test void result
        final GlobalTransformedObject transformed = exampleSProcService.testGlobalTransformer2(null);
        assertNull(transformed);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @Test
    public void testGlobalTransformer6() throws SQLException {

        // test void result
        final GlobalTransformedObject transformed = exampleSProcService.testGlobalTransformer2(
                new GlobalTransformedObject(null));

        // we cannot distinct on sql-level if the null is GlobalTransformedObject of GlobalTransformedObject.value
        assertNull(transformed);
    }
View Full Code Here

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

    @Test
    public void testGlobalTransformer7() throws SQLException {

        // test void result
        final List<GlobalTransformedObject> transformed = exampleSProcService.testGlobalTransformer5(Sets.newHashSet(
                    new GlobalTransformedObject(null)), null);

        // we cannot distinct on sql-level if the null is GlobalTransformedObject of GlobalTransformedObject.value
        assertNotNull(transformed);
        assertEquals(1, transformed.size());
        assertNull(transformed.get(0).getValue());
View Full Code Here

Examples of de.zalando.sprocwrapper.example.GlobalTransformedObject

        if (value == null || value.isEmpty()) {
            value = null;
        }

        return new GlobalTransformedObject(value);
    }
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.