Added log4j to maven build at test time to avoid spurious INFO logging

Updated log4j.xml files to quell debug/info output
Moved src/test/resources/**/* -> src/main/resources/**/* for the time being to fix the jdbc build
Eliminated several System.out.println calls in tests
This commit is contained in:
Chris Beams
2010-05-14 15:34:17 +00:00
parent 761b0ff9f2
commit 3bcb5a726a
26 changed files with 25 additions and 27 deletions

View File

@@ -31,7 +31,6 @@ import org.springframework.integration.ip.tcp.CustomNioSocketWriter;
import org.springframework.integration.ip.tcp.MessageFormats;
import org.springframework.integration.ip.tcp.SimpleTcpNetInboundGateway;
import org.springframework.integration.ip.tcp.SimpleTcpNetOutboundGateway;
import org.springframework.integration.ip.tcp.SimpleTcpNetOutboundGatewayTests;
import org.springframework.integration.ip.tcp.TcpNetReceivingChannelAdapter;
import org.springframework.integration.ip.tcp.TcpNetSendingMessageHandler;
import org.springframework.integration.ip.tcp.TcpNioReceivingChannelAdapter;
@@ -47,7 +46,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* @author Gary Russell
*
*/
@ContextConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
@@ -288,10 +286,4 @@ public class ParserUnitTests {
assertEquals(226, delegateDfa.getPropertyValue("soTimeout"));
}
@Test
public void test() {
String[] beanDefinitionNames = ctx.getBeanDefinitionNames();
for (String x : beanDefinitionNames)
System.out.println(x);
}
}

View File

@@ -1,8 +1,8 @@
log4j.rootCategory=DEBUG, stdout
log4j.rootCategory=WARN, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%c{1}: %m%n
log4j.category.org.springframework.integration=DEBUG
log4j.category.org.springframework.integration.ip=DEBUG
log4j.category.org.springframework.integration=WARN
log4j.category.org.springframework.integration.ip=WARN