Rename test classes to avoid confusion

This commit is contained in:
Sam Brannen 2015-08-15 13:32:14 +02:00
parent ae9b5c15c8
commit e7c95addeb
8 changed files with 25 additions and 22 deletions

View File

@ -24,7 +24,7 @@ import org.springframework.mock.http.client.MockClientHttpRequest;
import static org.hamcrest.Matchers.*;
/**
* Tests for {@link ContentRequestMatchers}.
* Unit tests for {@link ContentRequestMatchers}.
*
* @author Rossen Stoyanchev
*/

View File

@ -32,7 +32,7 @@ import static org.hamcrest.Matchers.*;
* @author Craig Walls
* @author Rossen Stoyanchev
*/
public class RequestMatchersTests {
public class MockRestRequestMatchersTests {
private final MockClientHttpRequest request = new MockClientHttpRequest();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2015 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;
/**
* Tests for {@link XpathRequestMatchers}.
* Unit tests for {@link XpathRequestMatchers}.
*
* @author Rossen Stoyanchev
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 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 JsonPathRequestMatchersIntegrationTests
* @see XmlContentRequestMatchersIntegrationTests
* @see XpathRequestMatchersIntegrationTests
*/
public class ContentRequestMatcherTests {
public class ContentRequestMatchersIntegrationTests {
private MockRestServiceServer mockServer;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 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 HeaderRequestMatchersIntegrationTests {
private static final String RESPONSE_BODY = "{\"name\" : \"Ludwig van Beethoven\", \"someDouble\" : \"1.6035\"}";

View File

@ -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 JsonPathRequestMatchersIntegrationTests {
private MockRestServiceServer mockServer;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2015 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 XmlContentRequestMatchersIntegrationTests {
private static final String PEOPLE_XML =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2015 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 XpathRequestMatchersIntegrationTests {
private static final Map<String, String> NS =
Collections.singletonMap("ns", "http://example.org/music/people");