shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jared Bunting <jared.bunt...@peachjean.com>
Subject Re: AbstractShiroTest in shiro-core
Date Wed, 23 Nov 2011 00:15:23 GMT
What about reimplementing it as a Junit rule?  There are often other
lifecycle bits that I want to incorporate in a unit test and having it
implemented as an abstract class seems to make this difficult.

On Nov 22, 2011 5:54 PM, "Les Hazlewood" <lhazlewood@apache.org> wrote:

While I agree that it is easy to copy-n-paste, I do believe it is
easier and more convenient to just depend on a test jar, subclass the
test class and be on your way writing tests.

Given the two options, my vote is to create a separate 'test' module
that people can depend on if they want.  People can depend on it if
they like, but they can just ignore it if they'd rather copy-n-paste.

My .02,

Les


On Tue, Nov 22, 2011 at 11:45 PM, Allan Ditzel <allan@allanditzel.com>
wrote:
> The main value woul...

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message