Remove System.out/.err Calls From All Tests

This commit is contained in:
Gary Russell
2016-04-14 16:22:45 -04:00
parent e5bf0187eb
commit 4027b38da8
32 changed files with 164 additions and 89 deletions

View File

@@ -16,7 +16,10 @@
package org.springframework.integration.xmpp.ignore;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jivesoftware.smack.packet.Message;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.stereotype.Component;
@@ -25,11 +28,14 @@ import org.springframework.stereotype.Component;
*
* @author Josh Long
* @author Mark Fisher
* @author Gary Russell
* @since 2.0
*/
@Component
public class XmppMessageConsumer {
private final Log logger = LogFactory.getLog(getClass());
@ServiceActivator
public void consume(Object input) throws Throwable {
String text = null;
@@ -43,8 +49,8 @@ public class XmppMessageConsumer {
throw new IllegalArgumentException(
"expected either a Smack Message or a String, but received: " + input);
}
System.out.println("================================================================================");
System.out.println("message: " + text);
logger.info("================================================================================");
logger.info("message: " + text);
}
}