AnsweredAssumed Answered

<Activiti In Action> source code for 5.14?

Question asked by milesma on Feb 12, 2014
Latest reply on Feb 13, 2014 by milesma
Hi Guys,

The source code I've downloaded seems can not parse compile with Activiti 5.14.

1. Is it true that the Unit Test classes does not need to generalize from "AbstractTest"?

2. Basically, the following imports failed in AbstractTest.java
    import org.activiti.engine.impl.util.LogUtil;
    import org.slf4j.bridge.SLF4JBridgeHandler;

Do you have any suggestion on how to correct the errors?

Thank you in advance.

—————-
package org.bpmnwithactiviti.common;

import java.util.logging.Handler;
import java.util.logging.LogManager;
import java.util.logging.Logger;

import org.activiti.engine.impl.util.LogUtil;
import org.junit.BeforeClass;
import org.slf4j.bridge.SLF4JBridgeHandler;

public abstract class AbstractTest {
   
   @BeforeClass
   public static void routeLoggingToSlf4j() {
      LogUtil.readJavaUtilLoggingConfigFromClasspath();
      Logger rootLogger = LogManager.getLogManager().getLogger(""); 
      Handler[] handlers = rootLogger.getHandlers(); 
      for (int i = 0; i < handlers.length; i++) { 
         rootLogger.removeHandler(handlers); 
      }
      SLF4JBridgeHandler.install();
   }

}

Outcomes