@Test public void test() throws Exception { Mockito.when(rs.next()).thenReturn(true).thenReturn(false); when(rs.getObject("mr_applicationnumber")).thenReturn("A15B20C"); String value = marriageRegnIdsRowMapper.mapRow(rs, 1); assertEquals("A15B20C", value); }
@Override public String mapRow(ResultSet rs, int rowNum) throws SQLException, DataAccessException { return (String) rs.getObject("mr_applicationnumber"); }
MarriageRegnIdsRowMapper implements RowMapper<String> { @Override public String mapRow(ResultSet rs, int rowNum) throws SQLException, DataAccessException { return (String) rs.getObject("mr_applicationnumber"); } }
MarriageRegnIdsRowMapper implements RowMapper<String> { @Override public String mapRow(ResultSet rs, int rowNum) throws SQLException, DataAccessException { return (String) rs.getObject("mr_applicationnumber"); }  }
MarriageRegnIdsRowMapper implements RowMapper<String> { @Override public String mapRow(ResultSet rs, int rowNum) throws SQLException, DataAccessException { return (String) rs.getObject("mr_applicationnumber"); }  @Override String mapRow(ResultSet rs, int rowNum); }
MarriageRegnIdsRowMapper implements RowMapper<String> { @Override public String mapRow(ResultSet rs, int rowNum) throws SQLException, DataAccessException { return (String) rs.getObject("mr_applicationnumber"); }  @Override String mapRow(ResultSet rs, int rowNum);  }