You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "CONNER, BRENDAN (SBCSI)" <bc...@att.com> on 2006/02/10 20:55:25 UTC

[SHALE] Using the Test Framework

I'm new to Shale, but I've been using JSF (and the MyFaces
implementation) for about 18 months now.  I'm interested in utilizing
the Test Framework that Shale offers, but I'm unsure about how much that
framework depends upon the rest of Shale.  Can I use it in isolation
with a vanilla JSF application?  What is the minimal configuration I
need if, at present, I'm only interested in using the Test Framework?

Also, I noticed links to nightly downloads on the Shale project's web
site, but I was not able to locate any "release" downloads.  Are there
"release" downloads available?  If so, are they relatively up-to-date,
or would I be better off using the nightlies?

Sorry if I'm repeating questions that have been answered in earlier
threads.  If this already has been discussed, please point me to the
relevant thread(s).

- Brendan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [SHALE] Using the Test Framework

Posted by Craig McClanahan <cr...@apache.org>.
On 2/10/06, Craig McClanahan <cr...@apache.org> wrote:
>
> The only classes in shale-test.jar that depend on the rest of Shale is the
> convenience base classes in  the org.apache.shale.test.base package.  The
> mock object classes  have no dependencies on Shale, so you're welcome to use
> them to support general JSF based development activities.
>

Actually, I need to refine this a little.  The base class
AbstractViewControllerTestCase is the only one that assumes a Shale API
(ViewController in this case).  AbstractJsfTestCase assumes only the
standard JSF, Servlet, and JSP APIs, making it tremendously useful for
testing pretty much any part of a JSF application, because it wires together
FacesContext and all the other pieces for you.


Craig
>
>
Craig

Re: [SHALE] Using the Test Framework

Posted by Craig McClanahan <cr...@apache.org>.
On 2/10/06, CONNER, BRENDAN (SBCSI) <bc...@att.com> wrote:
>
> I'm new to Shale, but I've been using JSF (and the MyFaces
> implementation) for about 18 months now.  I'm interested in utilizing
> the Test Framework that Shale offers, but I'm unsure about how much that
> framework depends upon the rest of Shale.  Can I use it in isolation
> with a vanilla JSF application?  What is the minimal configuration I
> need if, at present, I'm only interested in using the Test Framework?
>
> Also, I noticed links to nightly downloads on the Shale project's web
> site, but I was not able to locate any "release" downloads.  Are there
> "release" downloads available?  If so, are they relatively up-to-date,
> or would I be better off using the nightlies?
>
> Sorry if I'm repeating questions that have been answered in earlier
> threads.  If this already has been discussed, please point me to the
> relevant thread(s).
>
> - Brendan


The only classes in shale-test.jar that depend on the rest of Shale is the
convenience base classes in  the org.apache.shale.test.base package.  The
mock object classes  have no dependencies on Shale, so you're welcome to use
them to support general JSF based development activities.

Craig

Re: [SHALE] Using the Test Framework

Posted by Wendy Smoak <ws...@gmail.com>.
On 2/10/06, CONNER, BRENDAN (SBCSI) <bc...@att.com> wrote:

> Also, I noticed links to nightly downloads on the Shale project's web
> site, but I was not able to locate any "release" downloads.  Are there
> "release" downloads available?  If so, are they relatively up-to-date,
> or would I be better off using the nightlies?

You're definitely better off with the nightly builds (or the snapshots
in the Maven repositories, which are updated ~weekly.)  There was a
Shale 1.0.0 (alpha) release, but there have been many improvements to
the test framework since then.

HTH,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org