Hi all, I was playing with Derek Wyatt's implicit message protocol: http://derekwyatt.org/2014/01/01/using-scala-implicits-to-implement-a-messaging-protocol.html
and was able to wrap my messages in a custon envelope. Unfortunately it's when using TestKit that things started to get more complex. Basically, I'd like to be able to write: test ! MyMessage // internally this gets enveloped, and does a sender emit MyResponse expectMsg(MyResponse) But what the implicit sender here (or a TestProbe for what matters) sees is the envelope, not the real message. Of course I can rewrite the expectMsg to an expectMsgPF with the necessary unwrapping, but I'm looking for a more direct way that wouldn't force me to rewrite tons of expectMsg all around my code. The only other solution I could think of is to have my own TestKit implementation that knows how to unwrap the envelope. Any ideas beside those two ones? (I really wish akka would support custom envelope data or message metadata, that would allow to create incredible things without touching any line of a given actor code :)) Thanks! -- Brice Figureau My Blog: http://www.masterzen.fr/ -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.