[ANN] Testing Plugin 0.2 sneakily released

View: New views
2 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: [ANN] Testing Plugin 0.2 sneakily released

by Peter Ledbrook-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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



Re: [ANN] Testing Plugin 0.2 sneakily released

by Edwin Meijer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 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

< Prev | 1 - 2 | Next >