Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove superfluous usage of System.out.println #6060

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public Response route(String statement, String route, @Context UriInfo uriInfo,
}

String result = producerTemplate.requestBodyAndHeaders("direct:" + route, statement, headers, String.class);
System.out.println("---- result for " + statement + " is " + result);
return Response.ok(result).build();
} catch (CamelExecutionException e) {
return Response.serverError().entity(e.getMessage()).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void configure() {
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println(exchange.getIn().getHeaders());
Object in = exchange.getIn().getHeader("CamelGeneratedKeysRows");
exchange.getIn().setBody(in);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ public class ProxyTest {
void testProxy() {

final var proxyUrl = "http://localhost:" + RestAssured.port;
System.out.println("proxyUrl :: " + proxyUrl);

String url = given()
.get("/platform-http-proxy")
.body().asString();

System.out.println("URL is :: " + url);
given()
.proxy(proxyUrl)
.contentType(ContentType.JSON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public Map<String, String> getHeaders(@QueryParam("fromEndpoint") String fromEnd
public Map<String, String> getMisfire(@QueryParam("fromEndpoint") String fromEndpoint) throws Exception {
Exchange exchange = consumerTemplate.receive("seda:" + fromEndpoint + "-result", 5000);

System.out.println(exchange.getMessage().getHeaders().keySet().stream().collect(Collectors.joining(",")));
return CollectionHelper.mapOf("timezone",
exchange.getMessage().getHeader("trigger", CronTrigger.class).getTimeZone().getID(),
"misfire", exchange.getMessage().getHeader("trigger", CronTrigger.class).getMisfireInstruction() + "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
import org.apache.camel.Endpoint;
import org.apache.camel.builder.AdviceWith;
import org.apache.camel.builder.AdviceWithRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
Expand Down Expand Up @@ -64,13 +63,10 @@ protected Properties useOverridePropertiesWithPropertiesComponent() {

@Test
public void testOverride() throws Exception {

getMockEndpoint("mock:file").expectedMessageCount(1);
getMockEndpoint("mock:result").expectedMessageCount(1);
template.sendBody("direct:start", "Haha");
template.sendBody("direct:sftp", "Hello World");
Endpoint endpoint = getMockEndpoint("mock:start", true);
System.out.println(endpoint);

MockEndpoint.assertIsSatisfied(context);
}
Expand Down
Loading