Examples of ExampleDomainObjectWithGlobalTransformer


Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithGlobalTransformer

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