Changed unlimited blocking to block up untill the replyTimeout, and added a test for it, where manual Ack is never received ticket #1926 removed unnecesary methods
This commit is contained in:
parent
112e02e965
commit
d0a50f66e7
47 changed files with 1056 additions and 784 deletions
|
|
@ -16,24 +16,11 @@ class CamelMessageTest extends MustMatchers with WordSpec with SharedCamelSystem
|
|||
|
||||
"overwrite body and add header" in {
|
||||
val msg = sampleMessage
|
||||
CamelMessage("blah", Map("key" -> "baz")).copyContentTo(msg)
|
||||
CamelMessage.copyContent(CamelMessage("blah", Map("key" -> "baz")), msg)
|
||||
assert(msg.getBody === "blah")
|
||||
assert(msg.getHeader("foo") === "bar")
|
||||
assert(msg.getHeader("key") === "baz")
|
||||
}
|
||||
|
||||
"create message with body and header" in {
|
||||
val m = CamelMessage.from(sampleMessage)
|
||||
assert(m.body === "test")
|
||||
assert(m.headers("foo") === "bar")
|
||||
}
|
||||
|
||||
"create message with body and header and custom header" in {
|
||||
val m = CamelMessage.from(sampleMessage, Map("key" -> "baz"))
|
||||
assert(m.body === "test")
|
||||
assert(m.headers("foo") === "bar")
|
||||
assert(m.headers("key") === "baz")
|
||||
}
|
||||
}
|
||||
|
||||
private[camel] def sampleMessage = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue