activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <hi...@hiramchirino.com>
Subject Re: [DISCUSS] Questions: testing compatibility test with older version on a POJO
Date Thu, 08 Dec 2016 12:33:56 GMT
Try storing the 1.5.0 encoded buffer as a resource file in your test.

On Wed, Dec 7, 2016 at 9:55 PM, Clebert Suconic <clebert.suconic@gmail.com>
wrote:

> I need to write a test where the binary output would need to be
> checked against an older version of a class.
>
>
> The test would be something like:
>
>
> {
>    MessageImpl currentMessage = new MessageImpl();
>    setProperties(currentMessages); // some method that will generate
> data on message
>
>    // something that will encode the message
>    currentMessage.encode(someBuffer);
>
>    osgiMagic(someBuffer);
> }
>
> I'm looking for some OSGI Magic where I can then make comparissons
> with MessageImpl from 1.5.0.
>
>
> Is there any manageable way of doing this? Manageable = not so bad
> that only me would understand the code.
>
>
> I don't even know what to look for on google, hence the question here.
>
>
>
> thanks for any help is appreciated!
>
>
> Clebert
>



-- 
Hiram Chirino
Engineering | Red Hat, Inc.
hchirino@redhat.com | fusesource.com | redhat.com
skype: hiramchirino | twitter: @hiramchirino

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message