cancel
Showing results for 
Search instead for 
Did you mean: 

<Activiti In Action> source code for 5.14?

milesma
Champ in-the-making
Champ in-the-making
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();
   }

}
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Did you get the latest code from the Google code repository?

https://code.google.com/p/activitiinaction/source/checkout

milesma
Champ in-the-making
Champ in-the-making
Hi Tijs,

It's my great honor to get comments from you.

I've just got the latest code from the specified repository, used maven deploy the pom.xml and the unit test in Chapter 4 succeeded without any error. (Although the latest code seems to be 5.12 and the Activiti I'm using is 5.14)

Thank you so much.

trademak
Star Contributor
Star Contributor
Hi,

I'll try to update the source code to a more recent Activiti version in the next couple of weeks.

Best regards,