@Test public void allNamesMustBeLoaded() { String[] expectedNames = {"One", "Two", "Three", "Four", "Five"}; List<String> names = templateUnderTest.loadClientNames(); assertNotNull(names); assertEquals(5, names.size()); for (String expected: expectedNames) { assertTrue(names.contains(expected)); } }
@Override @Transactional(readOnly=true) public List<String> loadClientNames() { final List<String> names = template.query(selectAllNamesSqlText, selectAllNamesParameters, selectAllNamesParameterTypes, onlyNamesRowMapper); return names; }
SpringJdbcTemplateSamlClientDaoImpl implements SamlClientDao { @Override @Transactional(readOnly=true) public List<String> loadClientNames() { final List<String> names = template.query(selectAllNamesSqlText, selectAllNamesParameters, selectAllNamesParameterTypes, onlyNamesRowMapper); return names; } }
SpringJdbcTemplateSamlClientDaoImpl implements SamlClientDao { @Override @Transactional(readOnly=true) public List<String> loadClientNames() { final List<String> names = template.query(selectAllNamesSqlText, selectAllNamesParameters, selectAllNamesParameterTypes, onlyNamesRowMapper); return names; } SpringJdbcTemplateSamlClientDaoImpl(final DataSource dataSource, final LobHandler lobHandler, final String tableName, final String environment); }
SpringJdbcTemplateSamlClientDaoImpl implements SamlClientDao { @Override @Transactional(readOnly=true) public List<String> loadClientNames() { final List<String> names = template.query(selectAllNamesSqlText, selectAllNamesParameters, selectAllNamesParameterTypes, onlyNamesRowMapper); return names; } SpringJdbcTemplateSamlClientDaoImpl(final DataSource dataSource, final LobHandler lobHandler, final String tableName, final String environment); @Override @Transactional(readOnly=true) List<String> loadClientNames(); @Override @Transactional(readOnly=true) List<DbLoadedSamlClientConfigurationDto> loadAllClients(); @Override @Transactional(readOnly=true) DbLoadedSamlClientConfigurationDto loadClient(final String clientName); }
SpringJdbcTemplateSamlClientDaoImpl implements SamlClientDao { @Override @Transactional(readOnly=true) public List<String> loadClientNames() { final List<String> names = template.query(selectAllNamesSqlText, selectAllNamesParameters, selectAllNamesParameterTypes, onlyNamesRowMapper); return names; } SpringJdbcTemplateSamlClientDaoImpl(final DataSource dataSource, final LobHandler lobHandler, final String tableName, final String environment); @Override @Transactional(readOnly=true) List<String> loadClientNames(); @Override @Transactional(readOnly=true) List<DbLoadedSamlClientConfigurationDto> loadAllClients(); @Override @Transactional(readOnly=true) DbLoadedSamlClientConfigurationDto loadClient(final String clientName);  }