// Path: leitoor/src/main/java/br/com/delogic/leitoor/util/Log4jManager.java
// public class Log4jManager {
// 
//     public static void setLevel(Level level) {
//         Logger root = Logger.getRootLogger();
//         @SuppressWarnings("rawtypes")
//         Enumeration allLoggers = root.getLoggerRepository().getCurrentCategories();
//         root.setLevel(level);
//         while (allLoggers.hasMoreElements()) {
//             Category tmpLogger = (Category) allLoggers.nextElement();
//             tmpLogger.setLevel(level);
//         }
//     }
// 
// }


import javax.inject.Inject;
import org.apache.log4j.Level;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import br.com.delogic.csa.manager.EmailManager;
import br.com.delogic.csa.manager.email.EmailAddress;
import br.com.delogic.csa.manager.email.EmailContent;
import br.com.delogic.leitoor.util.Log4jManager;
package br.com.delogic.leitoor;




@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = {
                "classpath:spring/application-beans.xml",
                "classpath:spring/environment-beans.xml",
                "classpath:spring/web-beans.xml"})
public class SpringTeste extends Assert {

    static {
        System.setProperty("spring.profiles.active", "TEST");
// Path: leitoor/src/main/java/br/com/delogic/leitoor/util/Log4jManager.java
// public class Log4jManager {
// 
//     public static void setLevel(Level level) {
//         Logger root = Logger.getRootLogger();
//         @SuppressWarnings("rawtypes")
//         Enumeration allLoggers = root.getLoggerRepository().getCurrentCategories();
//         root.setLevel(level);
//         while (allLoggers.hasMoreElements()) {
//             Category tmpLogger = (Category) allLoggers.nextElement();
//             tmpLogger.setLevel(level);
//         }
//     }
// 
// }


// Path: leitoor/src/test/java/br/com/delogic/leitoor/SpringTeste.java
import javax.inject.Inject;
import org.apache.log4j.Level;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import br.com.delogic.csa.manager.EmailManager;
import br.com.delogic.csa.manager.email.EmailAddress;
import br.com.delogic.csa.manager.email.EmailContent;
import br.com.delogic.leitoor.util.Log4jManager;

package br.com.delogic.leitoor;




@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = {
                "classpath:spring/application-beans.xml",
                "classpath:spring/environment-beans.xml",
                "classpath:spring/web-beans.xml"})
public class SpringTeste extends Assert {

    static {
        System.setProperty("spring.profiles.active", "TEST");
        Log4jManager.setLevel(Level.INFO);