Package de.scoopgmbh.copper.audit

Examples of de.scoopgmbh.copper.audit.DummyPostProcessor


    assumeFalse(skipTests());
    logger.info("running testAuditTrailSmallData");
    final ConfigurableApplicationContext context = createContext(dsContext);
    try {
      de.scoopgmbh.copper.audit.BatchingAuditTrail auditTrail = context.getBean(de.scoopgmbh.copper.audit.BatchingAuditTrail.class);
      auditTrail.setMessagePostProcessor(new DummyPostProcessor());
      auditTrail.synchLog(1, new Date(), "4711", dsContext, "4711", "4711", "4711", null, "TEXT");
      auditTrail.synchLog(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(500), "TEXT");
      auditTrail.synchLog(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(5000), "TEXT");
      auditTrail.synchLog(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(50000), "TEXT");
    }
View Full Code Here


    logger.info("running testAuditTrailCustomSeqNr");
    final ConfigurableApplicationContext context = createContext(dsContext);
    try {
      cleanDB(context.getBean(DataSource.class));
      de.scoopgmbh.copper.audit.BatchingAuditTrail auditTrail = context.getBean(de.scoopgmbh.copper.audit.BatchingAuditTrail.class);
      auditTrail.setMessagePostProcessor(new DummyPostProcessor());
      long seqNr = 1;
      auditTrail.synchLog(new AuditTrailEvent(1, new Date(), "4711", dsContext, "4711", "4711", "4711", null, "TEXT", seqNr++));
      auditTrail.synchLog(new AuditTrailEvent(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(500), "TEXT", seqNr++));
      auditTrail.synchLog(new AuditTrailEvent(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(5000), "TEXT", seqNr++));
      auditTrail.synchLog(new AuditTrailEvent(1, new Date(), "4711", dsContext, "4711", "4711", "4711", createTestMessage(50000), "TEXT", seqNr++));
View Full Code Here

    oracleDialect.setEngineIdProvider(new EngineIdProviderBean("a"));
    oracleDialect.startup();
    this.databaseDialect = oracleDialect;
   
   
    OracleMonitoringDbDialect derbyMonitoringDbDialect = new OracleMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
    this.monitoringDbDialect = derbyMonitoringDbDialect;
  }
View Full Code Here

  void intit() {
    EmbeddedConnectionPoolDataSource40 datasource = new EmbeddedConnectionPoolDataSource40();
    datasource.setDatabaseName("./build/copperExampleDB;create=true");
    this.datasource=datasource;
   
    DerbyMonitoringDbDialect derbyMonitoringDbDialect = new DerbyMonitoringDbDialect(new StandardJavaSerializer(), new DummyPostProcessor(),new BatchingAuditTrail());
    this.monitoringDbDialect = derbyMonitoringDbDialect;
   
    DerbyDbDialect databaseDialect = new DerbyDbDialect();
    databaseDialect.setDataSource(datasource);
    databaseDialect.startup();
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.audit.DummyPostProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.