Package de.zalando.typemapper.sproctest.result

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


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


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

TOP

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

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.