Andy Wilkinson
1a0e008a8c
Prevent Netty tcNative from loading classes with wrong class loader
...
In our tests, the JNI code in Netty tcNative can cause some of its
classes to be loaded using a ModifiedClassPathClassLoader. When the
wrong class loader is used, SSL-related tests fail, for example due
to the same Netty tcNative classes being loaded by two different
ClassLoders and no longer being the same. This appears to be
dependent upon the order in which tests are executed and results in
intermittent test failures.
It looks like this should be addressed in Netty tcNative 2.0.40 which
preloads all of its classes. In the meantime, this commit updates
ModifiedClassPathClassLodaer to ignore Netty tcNative classes so that
they're only ever loaded by the system class loader.
Closes gh-26749
3 years ago
Stephane Nicoll
75f31f6bc4
Merge branch '2.4.x'
...
Closes gh-26748
4 years ago
Stephane Nicoll
ad99aa2f4a
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26747
4 years ago
dreis2211
f470151535
Remove reference to surefirebooter JAR
...
See gh-26737
4 years ago
Stephane Nicoll
e9ed92a305
Polish
4 years ago
Stephane Nicoll
942691753d
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26645
4 years ago
dreis2211
01ee6190a2
Remove workaround for SUREFIRE-1679
...
See gh-26632
4 years ago
Stephane Nicoll
ef093bc9c6
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26570
4 years ago
Stephane Nicoll
306b6f6999
Configure SessionCookieConfig in MockServletWebServer
...
Closes gh-26479
4 years ago
Stephane Nicoll
559af275a4
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26405
4 years ago
Sach Nguyen
afa77b8253
Fix wrong reference to Cassandra in DockerImageNames#couchbase
...
See gh-26399
4 years ago
Andy Wilkinson
ecf8437d4a
Merge branch '2.3.x' into 2.4.x
...
Closes gh-25430
4 years ago
dreis2211
101d88a840
Update Testcontainers image versions
...
See gh-25412
4 years ago
Stephane Nicoll
b6fc0913cf
Merge branch '2.3.x'
...
Closes gh-24104
4 years ago
Stephane Nicoll
515b18e142
Merge branch '2.3.x'
...
Closes gh-24108
4 years ago
Stephane Nicoll
9e901b6e07
Upgrade to Testcontainers 1.15.0
...
Closes gh-24103
4 years ago
Stephane Nicoll
23ad2b4156
Rationalize Testcontainers image versions
...
This commit rationalizes the Docker image names used in integration
tests.
Closes gh-24107
4 years ago
Stephane Nicoll
45f1133e1e
Merge branch '2.3.x'
4 years ago
Stephane Nicoll
339c8d0a26
Revert "Upgrade to Testcontainers 1.15.0"
4 years ago
Stephane Nicoll
5123eb0c74
Fix deprecation in Testcontainers 1.15.0
...
See gh-24103
4 years ago
Stephane Nicoll
7fb21fbff3
Merge branch '2.3.x'
...
Closes gh-24104
4 years ago
Stephane Nicoll
c1a1b5fe71
Upgrade to Testcontainers 1.15.0
...
Closes gh-24103
4 years ago
Johnny Lim
e48af31ced
Polish
...
See gh-23081
4 years ago
dreis2211
c00d5c5643
Introduce @ForkedClassPath for testing unmodified class path
...
See gh-22710
4 years ago
Andy Wilkinson
969dd35e45
Upgrade to Mockito 3.4.6
...
Closes gh-22838
4 years ago
Phillip Webb
8d06b0f368
Merge branch '2.3.x'
4 years ago
Phillip Webb
4924573074
Merge branch '2.2.x' into 2.3.x
4 years ago
Phillip Webb
fdd6a89a61
Polish
4 years ago
Andy Wilkinson
8b3f8a6138
Merge branch '2.3.x'
...
Closes gh-22768
4 years ago
Andy Wilkinson
11d1002f15
Merge branch '2.2.x' into 2.3.x
...
Closes gh-22767
4 years ago
Andy Wilkinson
07699ea6ff
Retry when dependency resolution fails in ModifiedClassPathClassLoader
...
Closes gh-22763
4 years ago
Andy Wilkinson
989fc36528
Polish
4 years ago
Andy Wilkinson
11a296b068
Polish "Fix NPE in BeanDefinitionLoader when XML support is disabled"
...
See gh-22696
4 years ago
dreis2211
507eb9498b
Use Class.getDeclaredConstructor().newInstance()
...
See gh-21913
4 years ago
Andy Wilkinson
96e6b74894
Merge branch '2.2.x' into 2.3.x
...
Closes gh-22243
4 years ago
Andy Wilkinson
a0f1424393
Polish "Fix unwrapping of captured PrintStream in test support's OutputCapture"
...
See gh-22214
4 years ago
XenoAmess
75a64bd901
Fix unwrapping of captured PrintStream in test support's OutputCapture
...
See gh-22214
4 years ago
Phillip Webb
ad1248e4ec
Replace "folder" with "directory"
...
Consistently use the term "directory" instead of "folder"
Closes gh-21218
5 years ago
Stephane Nicoll
b5e23e7405
Update copyright year of changed files
...
See gh-20020
5 years ago
Johnny Lim
b67ece48e4
Polish
...
See gh-20020
5 years ago
dreis2211
d8e2349e47
Use Supplier variants of Assert
...
See gh-19864
5 years ago
dreis2211
d75de39456
Upgrade to JUnit Jupiter 5.6.0
...
See gh-19907
5 years ago
Stephane Nicoll
e044817fe7
Migrate remaining use of ClassLoader.loadClass to Class.forName
...
Closes gh-19824
5 years ago
Stephane Nicoll
95be419527
Use Class.forName rather than ClassLoader.loadClass
...
This commit changes uses of ClassLoader.loadClass to Class.forName for
consistency with what was initiated in #19342 and better compatibility
with GraalVM.
Closes gh-19824
5 years ago
Phillip Webb
fd792cedaf
Polish DisabledIfDockerUnavailable
...
Convert `DisabledIfDockerUnavailable` to be an annotation and make
it slightly less noisy.
5 years ago
Phillip Webb
862462b791
Update copyright year of changed files
5 years ago
Phillip Webb
f57281340c
Merge branch '2.2.x'
5 years ago
Phillip Webb
3cfbfebbb1
Merge branch '2.1.x' into 2.2.x
5 years ago
Phillip Webb
9bd49562fe
Update copyright year of changed files
5 years ago
Brian Clozel
e0171a5da8
Polish
5 years ago
Andy Wilkinson
b5ae8b0af5
Disable tests that use Docker when Docker is unavailable
...
Closes gh-19616
5 years ago
Andy Wilkinson
ce99db1902
Port the build to Gradle
...
Closes gh-19609
Closes gh-19608
5 years ago
Andy Wilkinson
bdffa860d9
Increase startup timeout for Docker containers
...
Closes gh-19569
5 years ago
Stephane Nicoll
2c1e81adf0
Polish
5 years ago
Phillip Webb
83d4d94e8b
Cache ModifiedClassPathClassLoaders
...
Closes gh-18694
5 years ago
Phillip Webb
8d08d654d1
Merge branch '2.1.x'
...
Closes gh-18693
5 years ago
Andy Wilkinson
29080b87ec
Protect autoconfigure module against slow starting test containers
5 years ago
dreis2211
07b857e57a
Use disabledWithoutDocker option for @Testcontainers
...
See gh-18095
5 years ago
dreis2211
b4350a9d96
Remove unnecessary blank lines
...
See gh-18089
5 years ago
dreis2211
3e35a6616c
Fix duplicated words
...
See gh-18004
5 years ago
thelproad
9c1f503e46
Simplify if statements
...
See gh-17884
5 years ago
Phillip Webb
da4f436140
Change SearchStrategy EXHAUSTIVE to TYPE_HIERARCHY
...
Fixup references following upstream Spring Framework change.
5 years ago
Phillip Webb
8bc780762a
Merge branch '2.1.x'
5 years ago
Phillip Webb
fb1dd8fe93
Merge branch '2.0.x' into 2.1.x
5 years ago
Phillip Webb
913e831f4e
Merge '1.5.x' into 2.0.x
5 years ago
Andy Wilkinson
41957ec2ad
Polish "Polish OutputCapture and its JUnit Jupiter extension"
...
See gh-17049
5 years ago
dreis2211
2038fac825
Remove testsupport.assertj package
...
See gh-17557
5 years ago
Phillip Webb
a9ba7080ce
Merge branch '2.1.x'
5 years ago
dreis2211
4ec035977b
Polish testsupport.junit.platform package
...
See gh-17524
5 years ago
Phillip Webb
eff1147ccc
Rename classpath runner package
...
Remove `runner` since we're no longer tied to JUnit 4.
See gh-17491
5 years ago
Phillip Webb
1117fdb2b3
Make ModifiedClassPathExtension package private
...
Meta-annotate `ClassPathExclusions` and `ClassPathOverrides` with
so that the `ModifiedClassPathExtension` no longer needs to be
used directly.
See gh-17491
5 years ago
Phillip Webb
b6ec1332a0
Polish ModifiedClassPathClassLoader
...
Remove the `ModifiedClassPathClassLoaderFactory` in favor of
factory methods on `ModifiedClassPathClassLoader`.
See gh-17491
5 years ago
Phillip Webb
4fe5e9e31e
Remove direct junit-platform-launcher dependency
...
Replace any direct `junit-platform-launcher` dependencies and instead
rely on the test runner providing it. Launcher related class are not
handled via reflection.
This update allows us to workaround SUREFIRE-1679.
Closes gh-17517
5 years ago
Phillip Webb
543fcdbbfd
Delete internal OutputCaptureRule
...
Delete our internal `OutputCaptureRule` since we not longer have any
tests using it.
5 years ago
Phillip Webb
13b39cbbbf
Delete ModifiedClassPathRunner
...
Delete `ModifiedClassPathRunner` since we no longer have any tests
that use it.
See gh-17491
5 years ago
Phillip Webb
bd81bb90eb
Polish ModifiedClassPath support
...
See gh-17491
5 years ago
dreis2211
2a4c48cb91
Add JUnit 5 ModifiedClassPathExtension
...
Add a JUnit 5 extension that allows tests to be run with a
modified classpath. Since JUnit 5 does not currently offer a way
to run tests with a different classpath, we instead fake the
original invocation and launch an entirely new run for each
method.
See gh-17491
5 years ago
dreis2211
90d824f6cb
Extract ModifiedClassPathClass logic
...
Extract classes from `ModifiedClassPathRunner` so that they can
be reused.
See gh-17491
5 years ago
Phillip Webb
01933f9b06
Merge previously split strings
...
Merge some string lines that were previously split because of the
90 chars wide formatting.
5 years ago
Phillip Webb
cdf43a7489
Polish
5 years ago
Phillip Webb
8d4a2add63
Allow OutputCaptureRule to be used with AssertJ
...
Update `OutputCaptureRule` so that it now implements
`CapturedOutput` and can be used directly with AssertJ.
Closes gh-17512
5 years ago
dreis2211
32549cfc85
Remove folder that only contains package-info
...
See gh-17471
5 years ago
Andreas Gebhardt
ed7cfedb51
Fix JavaDoc within spring-boot-test-support
...
See gh-17443
5 years ago
Andy Wilkinson
2816635418
Polish
5 years ago
Phillip Webb
a66c4d3096
Unify method visibility of private classes
...
Apply checkstyle rule to ensure that private and package private
classes do not have unnecessary public methods. Test classes have
also been unified as much as possible to use default scoped
inner-classes.
Closes gh-7316
5 years ago
Phillip Webb
605599138e
Merge branch '2.1.x'
5 years ago
Phillip Webb
92bff3c328
Merge branch '2.0.x' into 2.1.x
5 years ago
Phillip Webb
cfeb0239b7
Merge branch '1.5.x' into 2.0.x
5 years ago
Madhura Bhave
30cfe7b4c5
Polish
6 years ago
Phillip Webb
b3d5cd538d
Add JUnit 5 checkstyle rules
...
Add a rule to enforce JUnit 5 usage and conventions.
Closes gh-17093
6 years ago
Andy Wilkinson
b18fffaf14
Move tests to JUnit 5 wherever possible
6 years ago
Andy Wilkinson
aef92b9295
Merge branch '2.1.x'
...
Closes gh-17079
6 years ago
Andy Wilkinson
24925c3dae
Merge branch '2.0.x' into 2.1.x
...
Closes gh-17078
6 years ago
Andy Wilkinson
c6c139d980
Merge branch '1.5.x' into 2.0.x
6 years ago
Brian Clozel
c74badd4f2
Auto-configure Elasticsearch REST client in Spring Data
...
This commit auto-configures the Elasticsearch REST client support
as a template for Spring Data Elasticsearch. As of this commit,
using the transport client is still possible but developers
should migrate.
This commit also removes the deprecated annotation on the
Elasticsearch auto-configuration for the transport client, since
this deprecation notice is already present on the configuration
property.
Closes gh-17024
Closes gh-16542
6 years ago
Phillip Webb
ad5e905bd7
Update copyright header of changed files
6 years ago
Phillip Webb
68aec8b6ee
Polish
6 years ago
Madhura Bhave
684a1c7a3c
Migrate tests to JUnit5 testcontainer extensions
...
Closes gh-15456
6 years ago
Phillip Webb
17aaf26590
Use consistent javadoc style for annotation links
...
Closes gh-13920
6 years ago
Phillip Webb
b879972d0d
Migrate to MergedAnnotations API
...
Migrate away from `AnnotationUtils` and `AnnotatedElementUtils`
when possible to the new `MergedAnnotations` API.
Closes gh-16551
6 years ago