Remove System.err.println from tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2021-2022 the original author or authors.
|
||||
* Copyright 2021-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -105,7 +105,6 @@ class ChunkMessageItemWriterIntegrationTests {
|
||||
// Drain queues
|
||||
Message<?> message = replies.receive(10);
|
||||
while (message != null) {
|
||||
System.err.println(message);
|
||||
message = replies.receive(10);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,7 +51,9 @@ class ChunkRequestTests {
|
||||
|
||||
@Test
|
||||
void testToString() {
|
||||
System.err.println(request.toString());
|
||||
assertEquals(
|
||||
"ChunkRequest: jobId=111, sequence=0, contribution=[StepContribution: read=0, written=0, filtered=0, readSkips=0, writeSkips=0, processSkips=0, exitStatus=EXECUTING], item count=2",
|
||||
request.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,6 +24,7 @@ import org.springframework.util.SerializationUtils;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
class ChunkResponseTests {
|
||||
@@ -43,7 +44,9 @@ class ChunkResponseTests {
|
||||
|
||||
@Test
|
||||
void testToString() {
|
||||
System.err.println(response.toString());
|
||||
assertEquals(
|
||||
"ChunkResponse: jobId=111, sequence=0, stepContribution=[StepContribution: read=0, written=0, filtered=0, readSkips=0, writeSkips=0, processSkips=0, exitStatus=EXECUTING], successful=true",
|
||||
response.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2022 the original author or authors.
|
||||
* Copyright 2010-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,7 +50,6 @@ class RemoteChunkFaultTolerantStepIntegrationTests {
|
||||
void drain() {
|
||||
Message<?> message = replies.receive(100L);
|
||||
while (message != null) {
|
||||
// System.err.println(message);
|
||||
message = replies.receive(100L);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,6 +35,7 @@ import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
@SpringJUnitConfig
|
||||
@@ -58,7 +59,6 @@ class ResourceSplitterIntegrationTests {
|
||||
@Splitter(inputChannel = "resources", outputChannel = "requests")
|
||||
public Resource[] handle(Resource[] message) {
|
||||
List<Resource> list = Arrays.asList(message);
|
||||
System.err.println(list);
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2022 the original author or authors.
|
||||
* Copyright 2010-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -98,7 +98,6 @@ class RetryRepeatTransactionalPollingIntegrationTests implements ApplicationCont
|
||||
service.setExpected(expected);
|
||||
waitForResults(lifecycle, expected.size(), 60); // (a,b), (fail), (fail),
|
||||
// ([fail],d), (e,f)
|
||||
System.err.println(service.getProcessed());
|
||||
assertEquals(7, service.getProcessed().size()); // a,b,fail,fail,d,e,f
|
||||
assertEquals(1, recoverer.getRecovered().size()); // fail
|
||||
assertEquals(expected, service.getProcessed());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2022 the original author or authors.
|
||||
* Copyright 2010-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -100,7 +100,6 @@ public class RetryTransactionalPollingIntegrationTests implements ApplicationCon
|
||||
List<String> expected = Arrays.asList(StringUtils.commaDelimitedListToStringArray("a,b,fail,fail,d,e"));
|
||||
service.setExpected(expected);
|
||||
waitForResults(bus, expected.size(), 100); // a, b, (fail, fail, [fail]), d, e
|
||||
// System.err.println(service.getProcessed());
|
||||
assertEquals(6, service.getProcessed().size()); // a,b,fail,fail,d,e
|
||||
assertEquals(1, recoverer.getRecovered().size()); // fail
|
||||
assertEquals(expected, service.getProcessed());
|
||||
|
||||
Reference in New Issue
Block a user