Search in sources :

Example 16 with DefaultAuditLogMsgBuilder

use of com.yahoo.athenz.common.server.log.impl.DefaultAuditLogMsgBuilder in project athenz by yahoo.

the class AuditLogMsgBuilderTest method testWhy.

@Test
public void testWhy() {
    DefaultAuditLogMsgBuilder msgBldr = starter("testWhy");
    String dataStr = "not?";
    msgBldr.why(dataStr);
    Assert.assertTrue(msgBldr.why().equals(dataStr), "why string=" + msgBldr.why());
}
Also used : DefaultAuditLogMsgBuilder(com.yahoo.athenz.common.server.log.impl.DefaultAuditLogMsgBuilder) Test(org.testng.annotations.Test)

Aggregations

DefaultAuditLogMsgBuilder (com.yahoo.athenz.common.server.log.impl.DefaultAuditLogMsgBuilder)16 Test (org.testng.annotations.Test)15 AuditLogMsgBuilder (com.yahoo.athenz.common.server.log.AuditLogMsgBuilder)7 AuditLogger (com.yahoo.athenz.common.server.log.AuditLogger)7 Principal (com.yahoo.athenz.auth.Principal)6 SimplePrincipal (com.yahoo.athenz.auth.impl.SimplePrincipal)6 DefaultAuditLogger (com.yahoo.athenz.common.server.log.impl.DefaultAuditLogger)6 SignedDomain (com.yahoo.athenz.zms.SignedDomain)6 ChangeLogStore (com.yahoo.athenz.zts.store.ChangeLogStore)6 DataStore (com.yahoo.athenz.zts.store.DataStore)6 MockZMSFileChangeLogStore (com.yahoo.athenz.zts.store.impl.MockZMSFileChangeLogStore)6 ZMSFileChangeLogStore (com.yahoo.athenz.zts.store.impl.ZMSFileChangeLogStore)6 HashSet (java.util.HashSet)6 HttpServletRequest (javax.servlet.http.HttpServletRequest)6 AuditLoggerFactory (com.yahoo.athenz.common.server.log.AuditLoggerFactory)1