@Test public void testGetOperationString() { String operation = "select something..."; AuditOperation auditOperation = new SimpleAuditOperation(operation); assertThat(auditOperation.getOperationString()) .isEqualTo(auditOperation.getNakedOperationString()) .isEqualTo(operation); }
@Override public String getOperationString() { return operationString; }
SimpleAuditOperation implements AuditOperation { @Override public String getOperationString() { return operationString; } }
SimpleAuditOperation implements AuditOperation { @Override public String getOperationString() { return operationString; } SimpleAuditOperation(String operationString); }
SimpleAuditOperation implements AuditOperation { @Override public String getOperationString() { return operationString; } SimpleAuditOperation(String operationString); @Override String getOperationString(); @Override String getNakedOperationString(); }
SimpleAuditOperation implements AuditOperation { @Override public String getOperationString() { return operationString; } SimpleAuditOperation(String operationString); @Override String getOperationString(); @Override String getNakedOperationString();  }