Package de.zalando.typemapper.namedresult.results

Examples of de.zalando.typemapper.namedresult.results.ClassWithClassWithListOfMap


        final PreparedStatement ps = connection.prepareStatement("SELECT tmp.hstore_array_type_function();");
        final ResultSet rs = ps.executeQuery();
        final TypeMapper<?> mapper = TypeMapperFactory.createTypeMapper(ClassWithClassWithListOfMap.class);
        int i = 0;
        while (rs.next()) {
            final ClassWithClassWithListOfMap firstResult = (ClassWithClassWithListOfMap) mapper.mapRow(rs, i++);
            final ClassWithListOfMap result = firstResult.getClassWithListOfMap();
            final List<Map<String, String>> mapList = result.getMapList();
            Assert.assertNotNull("List is Null", mapList);
            Assert.assertFalse("List is Empty", CollectionUtils.isEmpty(mapList));
            Assert.assertEquals("str", result.getStr());
            Assert.assertNotNull(result.getMapList().get(0));
View Full Code Here

TOP

Related Classes of de.zalando.typemapper.namedresult.results.ClassWithClassWithListOfMap

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.