Remove System.out/.err Calls From All Tests
This commit is contained in:
@@ -254,7 +254,6 @@ public class MessageGroupQueueTests {
|
||||
public void run() {
|
||||
try {
|
||||
boolean offered = queue.offer(new GenericMessage<String>("Hi-2"), 2, TimeUnit.SECONDS);
|
||||
System.out.println(offered);
|
||||
booleanHolder2.set(offered);
|
||||
}
|
||||
catch (Exception e) {
|
||||
@@ -269,7 +268,6 @@ public class MessageGroupQueueTests {
|
||||
public void run() {
|
||||
try {
|
||||
boolean offered = queue.offer(new GenericMessage<String>("Hi-3"), 2, TimeUnit.SECONDS);
|
||||
System.out.println(offered);
|
||||
booleanHolder3.set(offered);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
@@ -84,7 +84,6 @@ public class JdbcMessageHandlerParserTests {
|
||||
public void testMapPayloadOutboundChannelAdapter() {
|
||||
setUp("handlingMapPayloadJdbcOutboundChannelAdapterTest.xml", getClass());
|
||||
assertTrue(context.containsBean("jdbcAdapter"));
|
||||
System.out.println(context.getBean("jdbcAdapter").getClass().getName());
|
||||
Message<?> message = MessageBuilder.withPayload(Collections.singletonMap("foo", "bar")).build();
|
||||
channel.send(message);
|
||||
Map<String, Object> map = this.jdbcTemplate.queryForMap("SELECT * from FOOS");
|
||||
|
||||
@@ -34,14 +34,15 @@ import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.integration.IntegrationMessageHeaderAccessor;
|
||||
import org.springframework.integration.channel.QueueChannel;
|
||||
import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.annotation.DirtiesContext.ClassMode;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
@@ -94,6 +95,7 @@ public class MySqlJdbcMessageStoreMultipleChannelTests {
|
||||
@After
|
||||
public void afterTest() {
|
||||
new TransactionTemplate(this.transactionManager).execute(new TransactionCallback<Void>() {
|
||||
@Override
|
||||
public Void doInTransaction(TransactionStatus status) {
|
||||
final int deletedGroupToMessageRows = jdbcTemplate.update("delete from INT_GROUP_TO_MESSAGE");
|
||||
final int deletedMessages = jdbcTemplate.update("delete from INT_MESSAGE");
|
||||
@@ -112,6 +114,7 @@ public class MySqlJdbcMessageStoreMultipleChannelTests {
|
||||
public void testSendAndActivateTransactionalSend() throws Exception {
|
||||
|
||||
new TransactionTemplate(this.transactionManager).execute(new TransactionCallback<Void>() {
|
||||
@Override
|
||||
public Void doInTransaction(TransactionStatus status) {
|
||||
requestChannel.send(MessageBuilder.withPayload("Hello ").build());
|
||||
return null;
|
||||
@@ -135,9 +138,6 @@ public class MySqlJdbcMessageStoreMultipleChannelTests {
|
||||
ArrayList<Object> res = new ArrayList<Object>();
|
||||
res.add(message);
|
||||
res.add(message);
|
||||
|
||||
System.out.println("Split Complete");
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user