Kurt Zettel wrote:
I started creating my integration tests modeled after maven's shade plugin's
ITs but I have to assert quite a bit. The BeanShell scripts are pretty
hairy. Is there a (convenient/standard) way to do this from a junit test?
For one, you can use BeanShell or Groovy, whatever fits better. Complex
code can be moved into regular test classes and imported by the scripts [0].
An alternative approach is using the maven-verifier [1], see the ITs for
the Remote Resources Plugin [2] for an example.
Benjamin
[0]
http://maven.apache.org/plugins/maven-invoker-plugin/examples/access-test-classes.html
[1] http://maven.apache.org/shared/maven-verifier/
[2]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-remote-resources-plugin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]