提交 a32448da 编写于 作者: S Sam Brannen

Added link to the Mockito test spy "mock" testing library.

上级 ca97981d
......@@ -885,6 +885,7 @@ public void testProcessRepeatedly() {
<programlisting language="java">@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class MyTest {
<emphasis role="bold">@Autowired</emphasis>
private ApplicationContext applicationContext;
......@@ -935,7 +936,7 @@ public class MyTest {
<programlisting language="java">@RunWith(SpringJUnit4ClassRunner.class)
<lineannotation>// ApplicationContext will be loaded from <literal>"/applicationContext.xml"</literal> and <literal>"/applicationContext-test.xml"</literal></lineannotation>
<lineannotation>// in the root of the classpath</lineannotation>
<emphasis role="bold">@ContextConfiguration(locations={"/applicationContext.xml", "/applicationContext-test.xml"})</emphasis>
<emphasis role="bold">@ContextConfiguration({"/applicationContext.xml", "/applicationContext-test.xml"})</emphasis>
public class MyTest {
<lineannotation>// class body...</lineannotation>
}</programlisting>
......@@ -1799,6 +1800,12 @@ public class HibernateClinicTests extends AbstractClinicTests { }
objects.</para>
</listitem>
<listitem>
<para><ulink url="http://mockito.org/">Mockito</ulink>: a Java mock
library based on the <ulink url="http://xunitpatterns.com/Test%20Spy.html">test spy</ulink>
pattern.</para>
</listitem>
<listitem>
<para><ulink url="http://dbunit.sourceforge.net/">DbUnit</ulink>: a
JUnit extension (also usable with Ant and Maven) targeted for
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册