/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anarres.jdiagnostics;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author shevek
 */
public class DefaultQueryTest {

    private static final Logger LOG = LoggerFactory.getLogger(DefaultQueryTest.class);

    @Test
    public void testQuery() {
        DefaultQuery query = new DefaultQuery();
        query.add(new ThrowableQuery(new Exception()));
        LOG.info(String.valueOf(query.call()));
    }

}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anarres.jdiagnostics;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

/**
 *
 * @author shevek
 */
public class DefaultQueryTest {

    private static final Log LOG = LogFactory.getLog(DefaultQueryTest.class);

    @Test
    public void testQuery() {
        DefaultQuery query = new DefaultQuery();
        query.add(new ThrowableQuery(new Exception()));
        LOG.info(query.call());
    }

}

--- 
+++ 
@@ -5,9 +5,9 @@
  */
 package org.anarres.jdiagnostics;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  *
@@ -15,13 +15,13 @@
  */
 public class DefaultQueryTest {
 
-    private static final Log LOG = LogFactory.getLog(DefaultQueryTest.class);
+    private static final Logger LOG = LoggerFactory.getLogger(DefaultQueryTest.class);
 
     @Test
     public void testQuery() {
         DefaultQuery query = new DefaultQuery();
         query.add(new ThrowableQuery(new Exception()));
-        LOG.info(query.call());
+        LOG.info(String.valueOf(query.call()));
     }
 
 }
Fix tests to work with slf4j.
