You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/cassandra/DataCassandraTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation that can be used for a Cassandra test that focuses <strong>only</strong> on
41
41
* Cassandra components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to Cassandra tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data Casandra
44
+
* tests. Similarly, component scanning is limited to Cassandra repositories and entities
45
+
* ({@code @Table}).
45
46
* <p>
46
47
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/couchbase/DataCouchbaseTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation that can be used for a Data Couchbase test that focuses
41
41
* <strong>only</strong> on Data Couchbase components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to Data Couchbase tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data
44
+
* Couchbase tests. Similarly, component scanning is limited to Couchbase repositories and
45
+
* entities ({@code @Document}).
45
46
* <p>
46
47
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/elasticsearch/DataElasticsearchTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation that can be used for a Data Elasticsearch test that focuses
41
41
* <strong>only</strong> on Data Elasticsearch components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to Data Elasticsearch tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data
44
+
* Elasticsearch tests. Similarly, component scanning is limited to Elasticsearch
45
+
* repositories and entities ({@code @Document}).
45
46
* <p>
46
47
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/jdbc/DataJdbcTest.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -43,9 +43,9 @@
43
43
* Annotation that can be used for a Data JDBC test that focuses <strong>only</strong> on
44
44
* Data JDBC components.
45
45
* <p>
46
-
* Using this annotation will disable full auto-configuration, scan for
47
-
* {@code AbstractJdbcConfiguration} subclasses, and apply only configuration relevant to
48
-
* Data JDBC tests.
46
+
* Using this annotation only enables auto-configuration that is relevant to Data JDBC
47
+
* tests. Similarly, component scanning is limited to JDBC repositories and entities
48
+
* ({@code @Table}), as well as beans that implement {@code AbstractJdbcConfiguration}.
49
49
* <p>
50
50
* By default, tests annotated with {@code @DataJdbcTest} are transactional and roll back
51
51
* at the end of each test. They also use an embedded in-memory database (replacing any
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2019 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation that can be used for an LDAP test that focuses <strong>only</strong> on LDAP
41
41
* components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to LDAP tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data LDAP
44
+
* tests. Similarly, component scanning is limited to LDAP repositories and entities
45
+
* ({@code @Entry}).
45
46
* <p>
46
47
* By default, tests annotated with {@code @DataLdapTest} will use an embedded in-memory
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation that can be used for a MongoDB test that focuses <strong>only</strong> on
41
41
* MongoDB components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to MongoDB tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data Mongo
44
+
* tests. Similarly, component scanning is limited to Mongo repositories and entities
45
+
* ({@code @Document}).
45
46
* <p>
46
47
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -41,8 +41,9 @@
41
41
* Annotation that can be used for a Neo4j test that focuses <strong>only</strong> on
42
42
* Neo4j components.
43
43
* <p>
44
-
* Using this annotation will disable full auto-configuration and instead apply only
45
-
* configuration relevant to Neo4j tests.
44
+
* Using this annotation only enables auto-configuration that is relevant to Data Neo4j
45
+
* tests. Similarly, component scanning is limited to Neo4j repositories and entities
46
+
* ({@code @Node} and {@code @RelationshipProperties}).
46
47
* <p>
47
48
* By default, tests annotated with {@code @DataNeo4jTest} are transactional with the
48
49
* usual test-related semantics (i.e. rollback by default). This feature is not supported
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/r2dbc/DataR2dbcTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -39,8 +39,9 @@
39
39
* Annotation that can be used for a R2DBC test that focuses <strong>only</strong> on Data
40
40
* R2DBC components.
41
41
* <p>
42
-
* Using this annotation will disable full auto-configuration and instead apply only
43
-
* configuration relevant to Data R2DBC tests.
42
+
* Using this annotation only enables auto-configuration that is relevant to Data R2DBC
43
+
* tests. Similarly, component scanning is limited to R2DBC repositories and entities
44
+
* ({@code @Table}).
44
45
* <p>
45
46
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/redis/DataRedisTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2019 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
40
40
* Annotation for a Data Redis test that focuses <strong>only</strong> on Redis
41
41
* components.
42
42
* <p>
43
-
* Using this annotation will disable full auto-configuration and instead apply only
44
-
* configuration relevant to Redis tests.
43
+
* Using this annotation only enables auto-configuration that is relevant to Data Redis
44
+
* tests. Similarly, component scanning is limited to Redis repositories and entities
45
+
* ({@code @RedisHash}).
45
46
* <p>
46
47
* When using JUnit 4, this annotation should be used in combination with
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/JdbcTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2019 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -41,8 +41,9 @@
41
41
/**
42
42
* Annotation for a JDBC test that focuses <strong>only</strong> on JDBC-based components.
43
43
* <p>
44
-
* Using this annotation will disable full auto-configuration and instead apply only
45
-
* configuration relevant to JDBC tests.
44
+
* Using this annotation only enables auto-configuration that is relevant to JDBC
45
+
* tests. Similarly, component scanning is configured to skip regular components and
46
+
* configuration properties.
46
47
* <p>
47
48
* By default, tests annotated with {@code @JdbcTest} are transactional and roll back at
48
49
* the end of each test. They also use an embedded in-memory database (replacing any
0 commit comments