You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Paananen, Tero" <Te...@GTECH.COM> on 2003/05/28 22:58:14 UTC
RE: Somehow change PropertyMessageResources to enhance testabilit
y?
> It's easy to see that in normal operation, it's a good idea for
> "PropertyMessageResources" to be a read-only repository. There's no
> good reason to change message properties at runtime.
> However, it would
> be really nice to be able to write Cactus tests that are
> self-contained,
> so I can manually create the properties that a tag will use, so I can
> clearly verify the result.
>
> Is there any strategy for doing this? Does StrutsTestCase
> have any way
> to do this?
Extend PropertyMessageResources (and the corresponding
factory class) and implement what you need. Then use
that new class in your tests.
-TPP
-----------------------------------------
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org