|
15 | 15 | */ |
16 | 16 | package org.springframework.data.mongodb.core.encryption; |
17 | 17 |
|
18 | | -import static org.springframework.data.mongodb.core.schema.JsonSchemaProperty.encrypted; |
19 | | -import static org.springframework.data.mongodb.core.schema.JsonSchemaProperty.int32; |
20 | | -import static org.springframework.data.mongodb.core.schema.JsonSchemaProperty.int64; |
21 | | -import static org.springframework.data.mongodb.core.schema.JsonSchemaProperty.queryable; |
22 | | -import static org.springframework.data.mongodb.core.schema.QueryCharacteristics.range; |
23 | | -import static org.springframework.data.mongodb.test.util.Assertions.assertThat; |
| 18 | +import static org.springframework.data.mongodb.core.schema.JsonSchemaProperty.*; |
| 19 | +import static org.springframework.data.mongodb.core.schema.QueryCharacteristics.*; |
| 20 | +import static org.springframework.data.mongodb.test.util.Assertions.*; |
24 | 21 |
|
25 | 22 | import java.util.List; |
26 | 23 | import java.util.UUID; |
|
34 | 31 | import org.junit.jupiter.params.ParameterizedTest; |
35 | 32 | import org.junit.jupiter.params.provider.Arguments; |
36 | 33 | import org.junit.jupiter.params.provider.MethodSource; |
| 34 | + |
37 | 35 | import org.springframework.beans.factory.annotation.Autowired; |
38 | 36 | import org.springframework.context.annotation.Configuration; |
39 | 37 | import org.springframework.data.mongodb.config.AbstractMongoClientConfiguration; |
|
42 | 40 | import org.springframework.data.mongodb.core.schema.JsonSchemaProperty; |
43 | 41 | import org.springframework.data.mongodb.core.schema.MongoJsonSchema; |
44 | 42 | import org.springframework.data.mongodb.test.util.Client; |
| 43 | +import org.springframework.data.mongodb.test.util.EnableIfMongoServerVersion; |
45 | 44 | import org.springframework.data.mongodb.test.util.MongoClientExtension; |
46 | 45 | import org.springframework.test.context.ContextConfiguration; |
47 | 46 | import org.springframework.test.context.junit.jupiter.SpringExtension; |
48 | 47 |
|
49 | 48 | import com.mongodb.client.MongoClient; |
50 | 49 |
|
51 | 50 | /** |
| 51 | + * Integration tests for creating collections with encrypted fields. |
| 52 | + * |
52 | 53 | * @author Christoph Strobl |
53 | 54 | */ |
54 | 55 | @ExtendWith({ MongoClientExtension.class, SpringExtension.class }) |
| 56 | +@EnableIfMongoServerVersion(isGreaterThanEqual = "8.0") |
55 | 57 | @ContextConfiguration |
56 | 58 | public class MongoQueryableEncryptionCollectionCreationTests { |
57 | 59 |
|
|
0 commit comments