@Test public void testDeleteDomain() throws TranslatorException { String domainName = "abc"; simpleDBConnection.deleteDomain(domainName); verify(simpleDBClient, times(1)).deleteDomain(new DeleteDomainRequest(domainName)); }
@Override public void deleteDomain(String domainName) throws TranslatorException { try { this.amazonSimpleDBClient.deleteDomain(new DeleteDomainRequest(domainName)); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } }
SimpleDBConnectionImpl implements SimpleDBConnection { @Override public void deleteDomain(String domainName) throws TranslatorException { try { this.amazonSimpleDBClient.deleteDomain(new DeleteDomainRequest(domainName)); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } } }
SimpleDBConnectionImpl implements SimpleDBConnection { @Override public void deleteDomain(String domainName) throws TranslatorException { try { this.amazonSimpleDBClient.deleteDomain(new DeleteDomainRequest(domainName)); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } } SimpleDBConnectionImpl(AmazonSimpleDB amazonSimpleDBClient); }
SimpleDBConnectionImpl implements SimpleDBConnection { @Override public void deleteDomain(String domainName) throws TranslatorException { try { this.amazonSimpleDBClient.deleteDomain(new DeleteDomainRequest(domainName)); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } } SimpleDBConnectionImpl(AmazonSimpleDB amazonSimpleDBClient); @Override void createDomain(String domainName); @Override void deleteDomain(String domainName); @Override List<String> getDomains(); @Override Set<SimpleDBAttribute> getAttributeNames(String domainName); @Override int performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> valueList); @Override SelectResult performSelect(String selectExpression, String nextToken); @Override int performUpdate(String domainName, Map<String, Object> updateAttributes, String selectExpression); @Override int performDelete(String domainName, String selectExpression); @Override void close(); }
SimpleDBConnectionImpl implements SimpleDBConnection { @Override public void deleteDomain(String domainName) throws TranslatorException { try { this.amazonSimpleDBClient.deleteDomain(new DeleteDomainRequest(domainName)); } catch (AmazonServiceException e) { throw new TranslatorException(e); } catch (AmazonClientException e) { throw new TranslatorException(e); } } SimpleDBConnectionImpl(AmazonSimpleDB amazonSimpleDBClient); @Override void createDomain(String domainName); @Override void deleteDomain(String domainName); @Override List<String> getDomains(); @Override Set<SimpleDBAttribute> getAttributeNames(String domainName); @Override int performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> valueList); @Override SelectResult performSelect(String selectExpression, String nextToken); @Override int performUpdate(String domainName, Map<String, Object> updateAttributes, String selectExpression); @Override int performDelete(String domainName, String selectExpression); @Override void close();  }