Skip to content

Commit

Permalink
Remove superfluous usage of System.out.println
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed May 1, 2024
1 parent d84dd28 commit 5764aa4
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 15 deletions.
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

0 comments on commit 5764aa4

Please sign in to comment.