Polishing

This commit is contained in:
Juergen Hoeller
2014-07-28 22:05:40 +02:00
parent a3163ceb88
commit 8cc0fa5ae1
6 changed files with 40 additions and 38 deletions

View File

@@ -39,7 +39,6 @@ import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
@@ -57,11 +56,11 @@ import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.web.util.UriUtils;
/**
* Default builder for {@link MockHttpServletRequest} required as input to
* perform request in {@link MockMvc}.
* Default builder for {@link MockHttpServletRequest} required as input to perform
* requests in {@link MockMvc}.
*
* <p>Application tests will typically access this builder through the static
* factory methods in {@link MockMvcBuilders}.
* <p>Application tests will typically access this builder through the static factory
* methods in {@link org.springframework.test.web.servlet.setup.MockMvcBuilders}.
*
* @author Rossen Stoyanchev
* @author Arjen Poutsma
@@ -70,7 +69,6 @@ import org.springframework.web.util.UriUtils;
public class MockHttpServletRequestBuilder
implements ConfigurableSmartRequestBuilder<MockHttpServletRequestBuilder>, Mergeable {
private final HttpMethod method;
private final UriComponents uriComponents;
@@ -144,6 +142,7 @@ public class MockHttpServletRequestBuilder
this.uriComponents = UriComponentsBuilder.fromUri(uri).build();
}
/**
* Add a request parameter to the {@link MockHttpServletRequest}.
* If called more than once, the new values are added.
@@ -429,6 +428,7 @@ public class MockHttpServletRequestBuilder
return this;
}
/**
* {@inheritDoc}
* @return always returns {@code true}.