« Return to Thread: [ANN] Testing Plugin 0.2 sneakily released

Re: [ANN] Testing Plugin 0.2 sneakily released

by Edwin Meijer :: Rate this Message:

Reply to Author | View in Thread

 Yes that works!

Thanks


Peter Ledbrook-2 wrote:
> Does the testing plugin support custom (plugin) constraints?

No. The testing plugin deliberately does not load plugins because that
takes some time and so slows down the unit tests. That's why we still
have integration tests. However, you should be able to do what you
want simply by calling:

  ConstrainedProperty.registerNewConstraint(PhoneNumberConstraint.NAME,
PhoneNumberConstraint.class)

in your "setUp()" method.

Hope that helps,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: [ANN] Testing Plugin 0.2 sneakily released