Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
e7c95add
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 搜索 >>
提交
e7c95add
编写于
8月 15, 2015
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename test classes to avoid confusion
上级
ae9b5c15
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
25 addition
and
22 deletion
+25
-22
spring-test/src/test/java/org/springframework/test/web/client/match/ContentRequestMatchersTests.java
...rk/test/web/client/match/ContentRequestMatchersTests.java
+1
-1
spring-test/src/test/java/org/springframework/test/web/client/match/MockRestRequestMatchersTests.java
...k/test/web/client/match/MockRestRequestMatchersTests.java
+1
-1
spring-test/src/test/java/org/springframework/test/web/client/match/XpathRequestMatchersTests.java
...work/test/web/client/match/XpathRequestMatchersTests.java
+3
-2
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/ContentRequestMatchersIntegrationTests.java
...ples/matchers/ContentRequestMatchersIntegrationTests.java
+6
-5
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/HeaderRequestMatchersIntegrationTests.java
...mples/matchers/HeaderRequestMatchersIntegrationTests.java
+3
-2
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/JsonPathRequestMatchersIntegrationTests.java
...les/matchers/JsonPathRequestMatchersIntegrationTests.java
+1
-1
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XmlContentRequestMatchersIntegrationTests.java
...s/matchers/XmlContentRequestMatchersIntegrationTests.java
+5
-5
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XpathRequestMatchersIntegrationTests.java
...amples/matchers/XpathRequestMatchersIntegrationTests.java
+5
-5
未找到文件。
spring-test/src/test/java/org/springframework/test/web/client/match/ContentRequestMatchersTests.java
浏览文件 @
e7c95add
...
...
@@ -24,7 +24,7 @@ import org.springframework.mock.http.client.MockClientHttpRequest;
import
static
org
.
hamcrest
.
Matchers
.*;
/**
*
T
ests for {@link ContentRequestMatchers}.
*
Unit t
ests for {@link ContentRequestMatchers}.
*
* @author Rossen Stoyanchev
*/
...
...
spring-test/src/test/java/org/springframework/test/web/client/match/RequestMatchersTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/match/
MockRest
RequestMatchersTests.java
浏览文件 @
e7c95add
...
...
@@ -32,7 +32,7 @@ import static org.hamcrest.Matchers.*;
* @author Craig Walls
* @author Rossen Stoyanchev
*/
public
class
RequestMatchersTests
{
public
class
MockRest
RequestMatchersTests
{
private
final
MockClientHttpRequest
request
=
new
MockClientHttpRequest
();
...
...
spring-test/src/test/java/org/springframework/test/web/client/match/XpathRequestMatchersTests.java
浏览文件 @
e7c95add
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
5
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springframework.test.web.client.match
;
import
java.io.IOException
;
...
...
@@ -24,7 +25,7 @@ import org.junit.Test;
import
org.springframework.mock.http.client.MockClientHttpRequest
;
/**
*
T
ests for {@link XpathRequestMatchers}.
*
Unit t
ests for {@link XpathRequestMatchers}.
*
* @author Rossen Stoyanchev
*/
...
...
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/ContentRequestMatcherTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/ContentRequestMatcher
sIntegration
Tests.java
浏览文件 @
e7c95add
/*
* Copyright 2002-201
4
the original author or authors.
* Copyright 2002-201
5
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springframework.test.web.client.samples.matchers
;
import
java.net.URI
;
...
...
@@ -39,11 +40,11 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
*
* @author Rossen Stoyanchev
*
* @see JsonPathRequestMatcherTests
* @see XmlContentRequestMatcherTests
* @see XpathRequestMatcherTests
* @see JsonPathRequestMatcher
sIntegration
Tests
* @see XmlContentRequestMatcher
sIntegration
Tests
* @see XpathRequestMatcher
sIntegration
Tests
*/
public
class
ContentRequestMatcherTests
{
public
class
ContentRequestMatcher
sIntegration
Tests
{
private
MockRestServiceServer
mockServer
;
...
...
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/HeaderRequestMatcherTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/HeaderRequestMatcher
sIntegration
Tests.java
浏览文件 @
e7c95add
/*
* Copyright 2002-201
4
the original author or authors.
* Copyright 2002-201
5
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springframework.test.web.client.samples.matchers
;
import
java.net.URI
;
...
...
@@ -39,7 +40,7 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
*
* @author Rossen Stoyanchev
*/
public
class
HeaderRequestMatcherTests
{
public
class
HeaderRequestMatcher
sIntegration
Tests
{
private
static
final
String
RESPONSE_BODY
=
"{\"name\" : \"Ludwig van Beethoven\", \"someDouble\" : \"1.6035\"}"
;
...
...
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/JsonPathRequestMatcherTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/JsonPathRequestMatcher
sIntegration
Tests.java
浏览文件 @
e7c95add
...
...
@@ -43,7 +43,7 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
* @author Rossen Stoyanchev
* @see org.springframework.test.web.client.match.JsonPathRequestMatchers
*/
public
class
JsonPathRequestMatcherTests
{
public
class
JsonPathRequestMatcher
sIntegration
Tests
{
private
MockRestServiceServer
mockServer
;
...
...
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XmlContentRequestMatcherTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XmlContentRequestMatcher
sIntegration
Tests.java
浏览文件 @
e7c95add
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
5
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springframework.test.web.client.samples.matchers
;
import
java.net.URI
;
...
...
@@ -42,11 +43,10 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
* Examples of defining expectations on XML request content with XMLUnit.
*
* @author Rossen Stoyanchev
*
* @see ContentRequestMatcherTests
* @see XpathRequestMatcherTests
* @see ContentRequestMatchersIntegrationTests
* @see XpathRequestMatchersIntegrationTests
*/
public
class
XmlContentRequestMatcherTests
{
public
class
XmlContentRequestMatcher
sIntegration
Tests
{
private
static
final
String
PEOPLE_XML
=
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+
...
...
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XpathRequestMatcherTests.java
→
spring-test/src/test/java/org/springframework/test/web/client/samples/matchers/XpathRequestMatcher
sIntegration
Tests.java
浏览文件 @
e7c95add
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
5
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springframework.test.web.client.samples.matchers
;
import
java.net.URI
;
...
...
@@ -44,11 +45,10 @@ import static org.springframework.test.web.client.response.MockRestResponseCreat
* Examples of defining expectations on XML request content with XPath expressions.
*
* @author Rossen Stoyanchev
*
* @see ContentRequestMatcherTests
* @see XmlContentRequestMatcherTests
* @see ContentRequestMatchersIntegrationTests
* @see XmlContentRequestMatchersIntegrationTests
*/
public
class
XpathRequestMatcherTests
{
public
class
XpathRequestMatcher
sIntegration
Tests
{
private
static
final
Map
<
String
,
String
>
NS
=
Collections
.
singletonMap
(
"ns"
,
"http://example.org/music/people"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录