Stéphane Nicoll
481d036f7a
Avoid reader on empty content to be shared by multiple requests
...
This commit avoids several instances of MockHttpServletRequest to
have a common reader for empty content as closing it will have an
unwanted side effect on the others.
Closes gh-32820
2 years ago
Sam Brannen
c1229b03a7
Polishing
2 years ago
Stéphane Nicoll
6250b64766
Add support for form data in MockHttpServletRequestBuilder
...
Closes gh-32757
2 years ago
Stéphane Nicoll
8a8c8fe00e
Detect target of factory method with AOT
...
Previously, if a factory method is defined on a parent, the generated
code would blindly use the method's declaring class for both the target
of the generated code, and the signature of the method.
This commit improves the resolution by considering the factory metadata
in the BeanDefinition.
Closes gh-32609
2 years ago
Sébastien Deleuze
88b9c0567d
Refine null-safety in spring-test
...
See gh-32475
2 years ago
Stéphane Nicoll
c7c9da56da
Consistent atMost period for Awaitility-based tests
...
Closes gh-32537
2 years ago
Juergen Hoeller
c531a8a705
Nullability refinements and related polishing
...
See gh-32475
2 years ago
Juergen Hoeller
eb8b7c4331
Remove superfluous @NonNull declarations
2 years ago
Stéphane Nicoll
4983a802a7
Polish "Fix Javadoc"
...
See gh-32403
2 years ago
Maksim Sasnouski
abdccffa39
Fix Javadoc
...
This commit fixes various Javadoc issues across the code base.
See gh-32403
2 years ago
Sébastien Deleuze
cfd0aee4db
Polish and add MockMvcExtensionsTests.queryParameter
...
Closes gh-32371
2 years ago
corby kim
132fbe228f
Add query parameters to MockMvc Kotlin DSL
...
See gh-32371
2 years ago
Juergen Hoeller
e9110c0729
Polishing
2 years ago
Sam Brannen
de828e9764
Improve documentation for @Sql execution phases regarding lifecycle
...
Closes gh-32343
2 years ago
Juergen Hoeller
f22a1eece4
Polishing
2 years ago
Stéphane Nicoll
c04d4da9a3
Polish
2 years ago
Stéphane Nicoll
ea52ecc5e0
Polish
2 years ago
Juergen Hoeller
7e5efdd8dd
Reuse MapPropertySource for DynamicValuesPropertySource implementation
...
Closes gh-32110
2 years ago
Sam Brannen
3ce7c52030
Update copyright headers
2 years ago
Juergen Hoeller
d7778c0212
Polishing
2 years ago
Juergen Hoeller
531ac89e7e
Expose sendError message as default body
...
Closes gh-26720
2 years ago
Sam Brannen
5856d2e54e
Polish contribution
...
See gh-32069
2 years ago
mnhock
a8fa98e2a6
Remove unnecessary semicolons in enum declarations
...
Closes gh-32069
2 years ago
Stéphane Nicoll
1b312b6f3f
Polish
2 years ago
Stéphane Nicoll
dc5a21fbd1
Remove outdated note
...
See gh-20606
2 years ago
Stéphane Nicoll
e0c5068d0b
Fix incorrect assertions using json path
...
Closes gh-32036
2 years ago
Stéphane Nicoll
faba044735
Polish JsonPathExpectationsHelperTests
2 years ago
Stéphane Nicoll
4d885f9aad
Polish
2 years ago
Stéphane Nicoll
0c42965fc3
Polish
2 years ago
Sam Brannen
4b0443090a
Polish Javadoc for test annotations
2 years ago
Sébastien Deleuze
598c972a78
Update ContentRequestMatchers#multipartData Javadoc
...
This commit updates ContentRequestMatchers#multipartData
Javadoc to mention Tomcat fork of Commons FileUpload library
instead of the original variant.
It also adds a similar note to
ContentRequestMatchers#multipartDataContains.
Closes gh-31988
2 years ago
Stéphane Nicoll
1f2d29ee08
Polish
2 years ago
Stéphane Nicoll
2d3b02a89d
Polish
2 years ago
Sam Brannen
085af10afd
Polishing
2 years ago
Sam Brannen
580d9f81e2
Polishing
2 years ago
Sam Brannen
79b0d71514
Support the use of @Resource in test classes in AOT mode
...
Closes gh-31733
2 years ago
Juergen Hoeller
07097976ef
Polishing
2 years ago
Brian Clozel
f846d9484c
Add Javadoc to MockHttpServletResponse
...
This commit adds Javadoc to the `getContentLength` method of
`MockHttpServletResponse` to reflect that it gets its value from the
HTTP response header.
Closes gh-31833
2 years ago
Sam Brannen
6eed2b0aee
Upgrade to "TestNG Engine for the JUnit Platform" version 1.0.5
...
Thanks to a bug fix in 1.0.5, test methods in TestNG test classes can
finally be package private as was always the case with TestNG itself.
See https://github.com/junit-team/testng-engine/issues/16
2 years ago
Stéphane Nicoll
7cfff4049d
Polish "Remove unnecessary final modifier"
...
See gh-31916
2 years ago
Yanming Zhou
45080e3724
Remove unnecessary final modifier
...
final is useless for private and static methods
See gh-31916
2 years ago
Stéphane Nicoll
cd8bc2f82a
Remove useless empty inheritDoc Javadoc tag
2 years ago
Yaklede
b56fc50c27
Update copyright headers in spring-test
...
Closes gh-31853
2 years ago
Yanming Zhou
afcd03bddc
Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
...
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\)
Replace with : assertThat($1).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\)
Replace with : assertThat($1).isNotEmpty()
Closes gh-31758
2 years ago
Yanming Zhou
e2852e7355
Replace assertThat(x.contains(y)).isTrue() with assertThat(x).contains(y)
...
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isTrue\(\)
Replace with : assertThat($1).contains($2)
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isFalse\(\)
Replace with : assertThat($1).doesNotContain($2)
Closes gh-31762
2 years ago
Yanming Zhou
59815cefce
Replace assertThat(x.get(i)). with assertThat(x).element(i).
...
Search for : assertThat\((.+)\.get\((\d+)\)\)\.
Replace with : assertThat($1).element($2).
Closes gh-31759
2 years ago
Yanming Zhou
785ad399e9
Replace assertThat(x.iterator().next()) with assertThat(x).element(0)
...
Search for : assertThat\((.+).iterator\(\).next\(\)\)
Replace with : assertThat($1).element(0)
2 years ago
Sam Brannen
c74d60b9fe
Polishing
2 years ago
Sam Brannen
db48813181
Polish contribution
...
See gh-31757
2 years ago
HyeongMokJeong
a596c0e226
Introduce overloaded MockPart constructor that accepts the Content-Type
...
Closes gh-31757
2 years ago