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.suco...@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. hchir...@redhat.com | fusesource.com | redhat.com skype: hiramchirino | twitter: @hiramchirino