Skip to content

Commit 5b6e5ca

Browse files
Update tests.
Original Pull Request: #4196
1 parent 1a9136c commit 5b6e5ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MappingMongoJsonSchemaCreatorUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ enum JustSomeEnum {
292292
" 're-named-property' : { 'type' : 'string' }," + //
293293
" 'retypedProperty' : { 'bsonType' : 'javascript' }," + //
294294
" 'primitiveInt' : { 'bsonType' : 'int' }," + //
295-
" 'booleanProperty' : { 'type' : 'boolean' }," + //
295+
" 'booleanProperty' : { 'type' : 'bool' }," + //
296296
" 'longProperty' : { 'bsonType' : 'long' }," + //
297297
" 'intProperty' : { 'bsonType' : 'int' }," + //
298298
" 'dateProperty' : { 'bsonType' : 'date' }," + //

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/schema/JsonSchemaObjectUnitTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void objectObjectShouldRenderPropertiesCorrectly() {
131131
.append("description", "Must be an object defining restrictions for name, active.").append("properties",
132132
new Document("name", new Document("type", "string")
133133
.append("description", "Must be a string with length unbounded-10].").append("maxLength", 10))
134-
.append("active", new Document("type", "boolean")));
134+
.append("active", new Document("type", "bool")));
135135

136136
assertThat(object().generatedDescription()
137137
.properties(JsonSchemaProperty.string("name").maxLength(10).generatedDescription(),
@@ -264,7 +264,7 @@ void numberObjectShouldRenderMinimumCorrectly() {
264264
void arrayObjectShouldRenderItemsCorrectly() {
265265

266266
assertThat(array().items(Arrays.asList(string(), bool())).toDocument()).isEqualTo(new Document("type", "array")
267-
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "boolean"))));
267+
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "bool"))));
268268
}
269269

270270
@Test // DATAMONGO-2613
@@ -314,7 +314,7 @@ void arrayObjectShouldRenderAdditionalItemsItemsCorrectly() {
314314
void booleanShouldRenderCorrectly() {
315315

316316
assertThat(bool().generatedDescription().toDocument())
317-
.isEqualTo(new Document("type", "boolean").append("description", "Must be a boolean"));
317+
.isEqualTo(new Document("type", "bool").append("description", "Must be a boolean"));
318318
}
319319

320320
// -----------------

0 commit comments

Comments
 (0)