Re: Best practices: how to unit test class file transformations?

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
I usually dump result of th tracing class adapter to string and compare with
expected result. After that it is a good idea to load and run tranformed
class and do that for various types affected by your tranformation.

  regards,
  Eugene
 On 2011-05-31 6:34 AM, "Andreas Sewe" <[email protected]>
wrote:
> Hi all,
>
> what are your experiences with testing ASM-based class file
> transformations? I unfortunately couldn't find any best practices in the
> documentation/FAQ.
>
> Do you simply test whether your transformation produces the right
> Output.class for a given Input.class or do you do something more
> fine-grained (e.g., individual visit methods)? And is anyone using some
> mocking framework for this?
>
> Best wishes,
>
> Andreas
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.