提交 4be2d159 编写于 作者: S Sam Brannen

Reformat the Testing chapter

Reformatted the Testing chapter in preparation for upcoming changes.
上级 6fed79cb
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<chapter xml:id="testing" <chapter version="5.0"
xmlns="http://docbook.org/ns/docbook" version="5.0" xsi:schemaLocation="http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd"
xmlns:xl="http://www.w3.org/1999/xlink" xml:id="testing" xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation=" xmlns:xl="http://www.w3.org/1999/xlink"
http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd xmlns:xi="http://www.w3.org/2001/XInclude"
http://www.w3.org/1999/xlink http://www.docbook.org/xml/5.0/xsd/xlink.xsd"> xmlns:ns="http://docbook.org/ns/docbook">
<title>Testing</title> <title>Testing</title>
<section xml:id="testing-introduction"> <section xml:id="testing-introduction">
...@@ -85,8 +84,8 @@ ...@@ -85,8 +84,8 @@
usage with Spring's Web MVC framework, which are useful for testing usage with Spring's Web MVC framework, which are useful for testing
web contexts and controllers. These mock objects are generally more web contexts and controllers. These mock objects are generally more
convenient to use than dynamic mock objects such as <link convenient to use than dynamic mock objects such as <link
xl:href="http://www.easymock.org">EasyMock</link> or existing xl:href="http://www.easymock.org">EasyMock</link> or existing Servlet
Servlet API mock objects such as <link API mock objects such as <link
xl:href="http://www.mockobjects.com">MockObjects</link>.</para> xl:href="http://www.mockobjects.com">MockObjects</link>.</para>
</section> </section>
...@@ -2558,28 +2557,27 @@ public class HibernateClinicTests extends AbstractClinicTests { } ...@@ -2558,28 +2557,27 @@ public class HibernateClinicTests extends AbstractClinicTests { }
<listitem> <listitem>
<para><link <para><link
xl:href="http://www.mockobjects.com/">MockObjects.com</link>: Web xl:href="http://www.mockobjects.com/">MockObjects.com</link>: Web site
site dedicated to mock objects, a technique for improving the design dedicated to mock objects, a technique for improving the design of
of code within test-driven development.</para> code within test-driven development.</para>
</listitem> </listitem>
<listitem> <listitem>
<para><link <para><link xl:href="http://en.wikipedia.org/wiki/Mock_Object">"Mock
xl:href="http://en.wikipedia.org/wiki/Mock_Object">"Mock
Objects"</link>: Article in Wikipedia.</para> Objects"</link>: Article in Wikipedia.</para>
</listitem> </listitem>
<listitem> <listitem>
<para><link xl:href="http://www.easymock.org/">EasyMock</link>: <para><link xl:href="http://www.easymock.org/">EasyMock</link>: Java
Java library <quote> <emphasis>that provides Mock Objects for library <quote> <emphasis>that provides Mock Objects for interfaces
interfaces (and objects through the class extension) by generating (and objects through the class extension) by generating them on the
them on the fly using Java's proxy mechanism.</emphasis> </quote> Used fly using Java's proxy mechanism.</emphasis> </quote> Used by the
by the Spring Framework in its test suite.</para> Spring Framework in its test suite.</para>
</listitem> </listitem>
<listitem> <listitem>
<para><link xl:href="http://www.jmock.org/">JMock</link>: Library <para><link xl:href="http://www.jmock.org/">JMock</link>: Library that
that supports test-driven development of Java code with mock supports test-driven development of Java code with mock
objects.</para> objects.</para>
</listitem> </listitem>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册