[seam-commits] Seam SVN: r7341 - trunk/doc/reference/en/modules.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sat Feb 2 19:36:10 EST 2008
Author: pete.muir at jboss.org
Date: 2008-02-02 19:36:09 -0500 (Sat, 02 Feb 2008)
New Revision: 7341
Modified:
trunk/doc/reference/en/modules/testing.xml
Log:
JBSEAM-2227
Modified: trunk/doc/reference/en/modules/testing.xml
===================================================================
--- trunk/doc/reference/en/modules/testing.xml 2008-02-03 00:23:02 UTC (rev 7340)
+++ trunk/doc/reference/en/modules/testing.xml 2008-02-03 00:36:09 UTC (rev 7341)
@@ -457,6 +457,60 @@
</para>
</section>
+
+ <section>
+ <title>Using SeamTest with another test framework</title>
+
+ <para>
+ Seam provides TestNG support out of the box, but you can also use
+ another test framework, such as JUnit, if you want.
+ </para>
+
+ <para>
+ You'll need to provide an implementation of
+ <literal>AbstractSeamTest</literal> which does the following:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Calls <literal>super.begin()</literal> before every test
+ method.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calls <literal>super.end()</literal> after every test
+ method.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calls <literal>super.setupClass()</literal> to setup
+ integration test environment. This should be called before
+ any test methods are called.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calls <literal>super.cleanupClass()</literal> to clean up
+ the integration test environment.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calls <literal>super.startSeam()</literal> to start Seam at
+ the start of integration testing.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calls <literal>super.stopSeam()</literal> to cleanly shut
+ down Seam at the end of integration testing.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
<section>
<title>Integration Testing with Mock Data</title>
More information about the seam-commits
mailing list