You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/01/10 10:46:04 UTC
[camel] branch master updated (2fa09f9 -> fea2669)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 2fa09f9 Fixed CS for Camel-IRC
new 03cf077 CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-exec
new fea2669 CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-fop
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../test/java/org/apache/camel/component/exec/ExecProducerTest.java | 2 +-
.../test/java/org/apache/camel/component/fop/FopEndpointTest.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
[camel] 02/02: CAMEL-14020 - Migrate deprecate getOut to getMessage
in tests, camel-fop
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit fea26696dae1bd3e339da91e67b4ab95922e6202
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 10 11:45:39 2020 +0100
CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-fop
---
.../test/java/org/apache/camel/component/fop/FopEndpointTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-fop/src/test/java/org/apache/camel/component/fop/FopEndpointTest.java b/components/camel-fop/src/test/java/org/apache/camel/component/fop/FopEndpointTest.java
index 67351d4..0df933c 100644
--- a/components/camel-fop/src/test/java/org/apache/camel/component/fop/FopEndpointTest.java
+++ b/components/camel-fop/src/test/java/org/apache/camel/component/fop/FopEndpointTest.java
@@ -120,7 +120,7 @@ public class FopEndpointTest extends CamelTestSupport {
exchange.getIn().setBody(FopHelper.decorateTextWithXSLFO("Test Content"));
producer.process(exchange);
- try (InputStream inputStream = exchange.getOut().getBody(InputStream.class)) {
+ try (InputStream inputStream = exchange.getMessage().getBody(InputStream.class)) {
PDDocument document = PDDocument.load(inputStream, password);
assertTrue(document.isEncrypted());
}
@@ -141,12 +141,12 @@ public class FopEndpointTest extends CamelTestSupport {
exchange.getIn().setBody(FopHelper.decorateTextWithXSLFO("Test Content"));
producer.process(exchange);
- String plainText = exchange.getOut().getBody(String.class).trim();
+ String plainText = exchange.getMessage().getBody(String.class).trim();
assertEquals("Test Content", plainText);
}
private PDDocument getDocumentFrom(Exchange exchange) throws IOException {
- InputStream inputStream = exchange.getOut().getBody(InputStream.class);
+ InputStream inputStream = exchange.getMessage().getBody(InputStream.class);
return PDDocument.load(inputStream);
}
}
[camel] 01/02: CAMEL-14020 - Migrate deprecate getOut to getMessage
in tests, camel-exec
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 03cf077136cfcdcfc5bf66bc66f1fd6104a9bafe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 10 11:38:39 2020 +0100
CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-exec
---
.../src/test/java/org/apache/camel/component/exec/ExecProducerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-exec/src/test/java/org/apache/camel/component/exec/ExecProducerTest.java b/components/camel-exec/src/test/java/org/apache/camel/component/exec/ExecProducerTest.java
index b687bd7..97c58f6 100644
--- a/components/camel-exec/src/test/java/org/apache/camel/component/exec/ExecProducerTest.java
+++ b/components/camel-exec/src/test/java/org/apache/camel/component/exec/ExecProducerTest.java
@@ -194,7 +194,7 @@ public class ExecProducerTest extends AbstractJUnit4SpringContextTests {
}
});
// test the conversion
- ExecResult result = exchange.getOut().getBody(ExecResult.class);
+ ExecResult result = exchange.getMessage().getBody(ExecResult.class);
assertNotNull(result);
}
}