Package de.zalando.typemapper.sproctest.result

Examples of de.zalando.typemapper.sproctest.result.PrimitiveResult2


        final PreparedStatement ps = connection.prepareStatement("SELECT primitives_function();");
        final ResultSet rs = ps.executeQuery();
        final TypeMapper<?> mapper = TypeMapperFactory.createTypeMapper(PrimitiveResult2.class);
        int i = 0;
        while (rs.next()) {
            final PrimitiveResult2 result = (PrimitiveResult2) mapper.mapRow(rs, i++);
            Assert.assertEquals(0, result.getId().intValue());
            Assert.assertEquals("result_code", result.getMsg());
            Assert.assertEquals("result_code_2", result.getMsg2());
        }
    }
View Full Code Here

TOP

Related Classes of de.zalando.typemapper.sproctest.result.PrimitiveResult2

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.