@Test public void isAuditEnabledTest() { AuditEventLogger auditEventLogger = new AuditEventLogger(testInstanceFile, testAuditConfig); assertTrue(auditEventLogger.isAuditEnabled()); auditEventLogger = new AuditEventLogger(testInstanceFile, null); assertFalse(auditEventLogger.isAuditEnabled()); }
boolean isAuditEnabled() { return auditConfig != null; }
AuditEventLogger { boolean isAuditEnabled() { return auditConfig != null; } }
AuditEventLogger { boolean isAuditEnabled() { return auditConfig != null; } AuditEventLogger(File instanceFile, AuditConfig auditConfig); }
AuditEventLogger { boolean isAuditEnabled() { return auditConfig != null; } AuditEventLogger(File instanceFile, AuditConfig auditConfig); void logEvent(AuditEvent.AuditEventType eventType, boolean writeImmediatelyToDisk); void logEvent(AuditEvent.AuditEventType eventType, FormIndex formIndex,
                         boolean writeImmediatelyToDisk, String questionAnswer); void exitView(); void addLocation(Location location); }
AuditEventLogger { boolean isAuditEnabled() { return auditConfig != null; } AuditEventLogger(File instanceFile, AuditConfig auditConfig); void logEvent(AuditEvent.AuditEventType eventType, boolean writeImmediatelyToDisk); void logEvent(AuditEvent.AuditEventType eventType, FormIndex formIndex,
                         boolean writeImmediatelyToDisk, String questionAnswer); void exitView(); void addLocation(Location location);  }