Package de.zalando.sprocwrapper.example

Examples of de.zalando.sprocwrapper.example.ExampleDomainObjectWithEnum


    public void testEnum() {
        exampleSProcService.useEnumParam(ExampleEnum.ENUM_CONST_1);

        // exampleSProcService.createOrUpdateObjectWithEnum(null);

        final ExampleDomainObjectWithEnum obj = new ExampleDomainObjectWithEnum();
        obj.setX("X");
        obj.setMyEnum(ExampleEnum.ENUM_CONST_1);

        final String result = exampleSProcService.createOrUpdateObjectWithEnum(obj);
        assertEquals("XENUM_CONST_1", result);
    }
View Full Code Here


        assertEquals("XENUM_CONST_1", result);
    }

    @Test
    public void testReturnDomainObjectWithEnum() {
        final ExampleDomainObjectWithEnum obj = exampleSProcService.getEntityWithEnum(1L);
        Assert.assertNotNull(obj);
        Assert.assertEquals("sample x", obj.getX());
        Assert.assertEquals(ExampleEnum.ENUM_CONST_1, obj.getMyEnum());
    }
View Full Code Here

TOP

Related Classes of de.zalando.sprocwrapper.example.ExampleDomainObjectWithEnum

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.