@Test public void nullToEmpty() throws Exception { assertThat( mapper.fromResultSetOrEmpty(mockResultSet(null), "mock"), is(asList())); assertThat( mapper.fromResultSetOrEmpty(mockResultSet("[]"), "mock"), is(asList())); }
public List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column) throws SQLException { String text = rs.getString(column); if (rs.wasNull()) { return new ArrayList<>(); } else { return fromText(text); } }
ConfigKeyListMapper { public List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column) throws SQLException { String text = rs.getString(column); if (rs.wasNull()) { return new ArrayList<>(); } else { return fromText(text); } } }
ConfigKeyListMapper { public List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column) throws SQLException { String text = rs.getString(column); if (rs.wasNull()) { return new ArrayList<>(); } else { return fromText(text); } }  }
ConfigKeyListMapper { public List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column) throws SQLException { String text = rs.getString(column); if (rs.wasNull()) { return new ArrayList<>(); } else { return fromText(text); } }  List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column); String toBinding(List<ConfigKey> keys); }
ConfigKeyListMapper { public List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column) throws SQLException { String text = rs.getString(column); if (rs.wasNull()) { return new ArrayList<>(); } else { return fromText(text); } }  List<ConfigKey> fromResultSetOrEmpty(ResultSet rs, String column); String toBinding(List<ConfigKey> keys);  }