Update tests.

Original Pull Request: #4196
This commit is contained in:
Christoph Strobl
2022-10-10 14:40:52 +02:00
parent 1a9136c0c1
commit 5b6e5ca568
2 changed files with 4 additions and 4 deletions

View File

@@ -292,7 +292,7 @@ class MappingMongoJsonSchemaCreatorUnitTests {
" 're-named-property' : { 'type' : 'string' }," + //
" 'retypedProperty' : { 'bsonType' : 'javascript' }," + //
" 'primitiveInt' : { 'bsonType' : 'int' }," + //
" 'booleanProperty' : { 'type' : 'boolean' }," + //
" 'booleanProperty' : { 'type' : 'bool' }," + //
" 'longProperty' : { 'bsonType' : 'long' }," + //
" 'intProperty' : { 'bsonType' : 'int' }," + //
" 'dateProperty' : { 'bsonType' : 'date' }," + //

View File

@@ -131,7 +131,7 @@ class JsonSchemaObjectUnitTests {
.append("description", "Must be an object defining restrictions for name, active.").append("properties",
new Document("name", new Document("type", "string")
.append("description", "Must be a string with length unbounded-10].").append("maxLength", 10))
.append("active", new Document("type", "boolean")));
.append("active", new Document("type", "bool")));
assertThat(object().generatedDescription()
.properties(JsonSchemaProperty.string("name").maxLength(10).generatedDescription(),
@@ -264,7 +264,7 @@ class JsonSchemaObjectUnitTests {
void arrayObjectShouldRenderItemsCorrectly() {
assertThat(array().items(Arrays.asList(string(), bool())).toDocument()).isEqualTo(new Document("type", "array")
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "boolean"))));
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "bool"))));
}
@Test // DATAMONGO-2613
@@ -314,7 +314,7 @@ class JsonSchemaObjectUnitTests {
void booleanShouldRenderCorrectly() {
assertThat(bool().generatedDescription().toDocument())
.isEqualTo(new Document("type", "boolean").append("description", "Must be a boolean"));
.isEqualTo(new Document("type", "bool").append("description", "Must be a boolean"));
}
// -----------------