Sam Brannen
e272e2e151
Support conditional processing in TestContext event annotations
...
This commit introduces support for SpEL expressions for conditional
event processing in annotations such as @BeforeTestClass ,
@BeforeTestMethod , etc.
This commit also introduces a new getTestContext() method in
TestContextEvent in order to improve the readability of such SpEL
expressions.
See gh-18490
6 years ago
Sam Brannen
f6d62eda8b
Add missing @Nullable declarations to TestContext return values
6 years ago
Sam Brannen
8649061acc
Polish Javadoc for TestContext
6 years ago
Sam Brannen
7d926a847d
Polish tests for TestContext lifecycle events
...
See gh-18490
6 years ago
Sam Brannen
a16dd95ab7
Polishing
6 years ago
Sam Brannen
416346200f
Polishing
6 years ago
Sam Brannen
297fd7629a
Polishing
6 years ago
Sam Brannen
dd1330d05e
Fix CheckStyle violations
...
See gh-18490
6 years ago
Sam Brannen
2d6624de71
Polish support for publishing TestContext lifecycle events
...
See gh-18490
6 years ago
Frank Scheffler
34fee867d2
Provide support for publishing TestContext lifecycle events
...
This commit introduces a new EventPublishingTestExecutionListener for
publishing events to the test ApplicationContext. These may be consumed
by @EventListener annotated methods to react to the TestContext
lifecycle. The listener is not registered by default.
Closes gh-18490
6 years ago
Loïc Ledoyen
d77b36bf3b
Open parameter autowiring utility for external use ( #2060 )
...
* Make AutowireUtils public and protect its current API
* Move ParameterAutowireUtils features to AutowireUtils
Closes gh-2060
6 years ago
Sam Brannen
a7770e7448
Remove ApplicationContext dependency from ParameterAutowireUtils
...
This commit is a prerequisite for gh-2060.
6 years ago
Juergen Hoeller
5c2f3079fd
Sync between MockHttpServletResponse copies
...
See gh-22466
6 years ago
stsypanov
1c24dc1f27
Simplify String concatenation
6 years ago
Juergen Hoeller
c3fa900672
Upgrade to Hibernate Validator 5.4.3 and 6.0.15
6 years ago
Juergen Hoeller
ba0c48b933
Polishing
6 years ago
Juergen Hoeller
e9626779ee
@Resource provides dependency descriptor for resolving beans by name
...
Closes gh-22359
6 years ago
Sebastien Deleuze
0b9522c84e
Migrate Kotlin Mockito tests to Mockk
...
Closes gh-22345
6 years ago
Juergen Hoeller
165d2511b9
Upgrade to Apache HttpClient 4.5.7 and Commons FileUpload 1.4
...
Includes RxJava 2.2.6, Netty 4.1.33, Undertow 2.0.17.
6 years ago
Juergen Hoeller
c700ccbc00
Upgrade to Apache HttpClient 4.5.7
...
Includes Hibernate ORM 5.4.1 for integration tests.
6 years ago
Juergen Hoeller
493e9c1ff0
Consistent upgrade to Rome 1.12 and WebJars Locator 0.36
6 years ago
Juergen Hoeller
d37a18ff03
Upgrade to Hibernate Validator 6.0.14 and Apache Johnzon 1.1.11
...
Includes OkHttp MockWebServer 3.12.1.
6 years ago
Juergen Hoeller
7a7958f275
MockMvcResultMatchers.forwardedUrl argument declared as nullable
...
Issue: SPR-17623
6 years ago
Rossen Stoyanchev
38ae282c3b
Update log category precision for all tests
...
Replace the full category capped at 36 chars with the class name only
and 1 char per package, e.g. org.apache.commons.Foo -> o.a.c.Foo
6 years ago
Rossen Stoyanchev
270099383b
Add protected method in StandaloneMockMvcBuilder
...
To allow sub-classes to register additional MVC infrastructure.
Issue: SPR-17520
6 years ago
Juergen Hoeller
9efea7eb73
MockHttpServletRequest preserves original Accept-Language header value
...
Issue: SPR-17566
6 years ago
Juergen Hoeller
d5dab12909
NettyDataBufferFactory.join returns single-element buffer as-is
...
Issue: SPR-17560
6 years ago
Sam Brannen
58cde3c2e6
Avoid test compile-time dependency on junit-jupiter-engine
...
Issue: SPR-17533
6 years ago
Sam Brannen
aa7f69a5d1
Ensure that parameter resolution in SpringExtension is thread-safe
...
Prior to this commit, parallel execution of @BeforeEach and @AfterEach
methods that accepted @Autowired arguments would fail intermittently
due to a race condition in the internal implementation of the JDK's
java.lang.reflect.Executable.getParameters() method.
This commit addresses this issue by creating instances of
SynthesizingMethodParameter via
SynthesizingMethodParameter.forExecutable(Executable, int) instead of
SynthesizingMethodParameter.forParameter(Parameter), since the latter
looks up the parameter index by iterating over the array returned by
Executable.getParameters() (which is not thread-safe).
Issue: SPR-17533
6 years ago
Juergen Hoeller
c16f36b537
Upgrade to Mockito 2.23.4, Selenium 3.141.59, JSON-P 1.1.4
6 years ago
Juergen Hoeller
ae8f680d2e
Polishing
6 years ago
Rossen Stoyanchev
759013eb17
Consistent isEmpty check in WebTestClient
...
Issue: SPR-17522
6 years ago
Juergen Hoeller
8c7579eba8
Polishing
6 years ago
Juergen Hoeller
ce5c65c0b0
Upgrade to JAXB 2.3.1, Groovy 2.5.4, Jetty 9.4.14, Tomcat 9.0.13
...
Includes JAX-WS 2.3.1, Awaitility 3.1.3, OkHttp 3.12, Woodstox 5.2.
6 years ago
Stephane Nicoll
7b6f2f8fb3
Polish contribution
...
Closes gh-2019
6 years ago
Hanope
bfb49c7249
Fix typos
...
See gh-2019
6 years ago
Sam Brannen
b3aad549c9
Fix @since tag
6 years ago
Sam Brannen
865f1f692a
Introduce tests for @Sql and @Transactional support in @Nested test classes
...
This commit was inspired by the following question on Stack Overflow.
https://stackoverflow.com/questions/53236807/spring-boot-testing-run-script-in-a-nested-test-sql-script-sql
6 years ago
Sam Brannen
93df24af16
Polishing
6 years ago
Juergen Hoeller
f65408f646
Avoid references to groovy-all artifact across all modules
...
Issue: SPR-17446
6 years ago
Rossen Stoyanchev
c2b55e60cd
Fix failing test
...
After the fix #658c7f for lenient parsing of dates, the error message
raised uses an HttpHeaders-formatted date. As a result the test
verifying the error message fails in the beginning of the month between
1-9 because it's formatted slightly differently.
6 years ago
Sam Brannen
42a95b8f35
Fix typo and polish
6 years ago
Juergen Hoeller
67bd3f670f
Upgrade to AspectJ 1.9.2, Rome 1.11.1, OpenPDF 1.2.5, POI 4.0
6 years ago
Juergen Hoeller
a0b42a3dfd
Upgrade to Hibernate ORM 5.3.7
6 years ago
Juergen Hoeller
93bb78ec23
Avoid private bean classes in integration tests (for CGLIB on JDK 11)
...
Issue: SPR-16391
6 years ago
Juergen Hoeller
50949415d7
Upgrade spring-test to Hibernate ORM 5.3.6 (for JDK 11 compatibility)
...
Issue: SPR-16391
6 years ago
Rossen Stoyanchev
ecd0d7f0f6
Complete initialization with bindToRouterFunction
...
Issue: SPR-17239
6 years ago
Rossen Stoyanchev
658c7f99d7
Lenient date parsing in HeadersResultMatchers
...
Rather than formatting the expected value, and be susceptible to
minor formatting differences (e.g. 01 vs 1 for day of month), parse the
actual header value leniently with HttpHeaders and compare time values.
Issue: SPR-17330
6 years ago
Rossen Stoyanchev
c5ca56bd50
Polish
6 years ago
Juergen Hoeller
bfc5ad890e
MockHttpServletRequest resets InputStream/Reader on setContent
...
Issue: SPR-17373
6 years ago