Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
2ef40d24
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2ef40d24
编写于
1月 08, 2010
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed typos
上级
b9a3d3f3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
spring-framework-reference/src/mvc.xml
spring-framework-reference/src/mvc.xml
+1
-1
spring-framework-reference/src/testing.xml
spring-framework-reference/src/testing.xml
+7
-7
未找到文件。
spring-framework-reference/src/mvc.xml
浏览文件 @
2ef40d24
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
wide range of flexible handling methods. With the introduction of Spring
wide range of flexible handling methods. With the introduction of Spring
3.0, the
<interfacename>
@Controller
</interfacename>
mechanism also allows
3.0, the
<interfacename>
@Controller
</interfacename>
mechanism also allows
you to create RESTful Web sites and applications, through the
you to create RESTful Web sites and applications, through the
<interfacename>
@PathVar
ar
iable
</interfacename>
annotation and other
<interfacename>
@PathVariable
</interfacename>
annotation and other
features.
</para>
features.
</para>
<sidebar
id=
"mvc-open-for-extension"
>
<sidebar
id=
"mvc-open-for-extension"
>
...
...
spring-framework-reference/src/testing.xml
浏览文件 @
2ef40d24
...
@@ -1652,17 +1652,17 @@ code, etc? Or what? If my rewording is wrong, revise to clarify. What does using
...
@@ -1652,17 +1652,17 @@ code, etc? Or what? If my rewording is wrong, revise to clarify. What does using
<para>
The
<emphasis>
Spring TestContext Framework
</emphasis>
offers
<para>
The
<emphasis>
Spring TestContext Framework
</emphasis>
offers
full integration with JUnit 4.5+ through a custom runner (tested on
full integration with JUnit 4.5+ through a custom runner (tested on
JUnit 4.5, 4.6, and 4.7). By annotating test classes with
JUnit 4.5, 4.6, and 4.7). By annotating test classes with
<literal>
@Run
w
ith(SpringJUnit4ClassRunner.class)
</literal>
,
<literal>
@Run
W
ith(SpringJUnit4ClassRunner.class)
</literal>
,
developers can implement standard JUnit 4.5+ unit and integration
developers can implement standard JUnit 4.5+ unit and integration
tests and simultaneously reap the benefits of the TestContext
tests and simultaneously reap the benefits of the TestContext
framework such as support for loading application contexts,
framework such as support for loading application contexts,
dependency injection of test instances, transactional test method
dependency injection of test instances, transactional test method
execution, and so on. The following code listing displays the
execution, and so on. The following code listing displays the
minimal
minimal requirements for configuring a test class to run with the
requirements for configuring a test class to run with the custom Spring
custom Spring Runner. @TestExecutionListeners is configured with an
Runner.
<interfacename>
@TestExecutionListeners
</interfacename>
is
empty list in order to disable the default listeners, which
configured with an empty list in order to disable the default listeners,
otherwise would require an ApplicationContext to be configured
which
otherwise would require an ApplicationContext to be configured
through
@ContextConfiguration
.
</para>
through
<interfacename>
@ContextConfiguration
</interfacename>
.
</para>
<programlisting
language=
"java"
>
@RunWith(SpringJUnit4ClassRunner.class)
<programlisting
language=
"java"
>
@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners({})
@TestExecutionListeners({})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录