diff --git a/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java b/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java index dae2be28a30..a8bb31f1dad 100644 --- a/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java +++ b/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java @@ -156,10 +156,10 @@ void shouldAugmentPropertiesSchemaFromAnnotations() throws JsonProcessingExcepti final JSONSchemaProps defaultValue2 = spec.get("defaultValue2"); assertEquals("my-value2", YAML_MAPPER.writeValueAsString(defaultValue2.getDefault()).trim()); - assertNull(defaultValue.getNullable()); - assertNull(defaultValue.getMinimum()); - assertNull(defaultValue.getMaximum()); - assertNull(defaultValue.getPattern()); + assertNull(defaultValue2.getNullable()); + assertNull(defaultValue2.getMinimum()); + assertNull(defaultValue2.getMaximum()); + assertNull(defaultValue2.getPattern()); // check required list, should register properties with their modified name if needed final List required = specSchema.getRequired();