• Phillip Webb's avatar
    Add hasJsonPath and doesNotHaveJsonPath asserts · 0d92af7d
    Phillip Webb authored
    Extend `JsonContentAssert` with `hasJsonPath` and `doesNotHaveJsonPath`
    methods which can be used to check the path regardless of the value it
    may or may not contain.
    
    Prior to this commit there wasn't an easy way to assert that the
    Jackson `@JsonInclude(JsonInclude.Include.NON_NULL)` annotation was
    applied since `assertDoesNotHavePathValue` would pass for both
    `{"name" : null}` and `{}`.
    
    Closes gh-17608
    0d92af7d
Name
Last commit
Last update
..
META-INF Loading commit data...
org/springframework/boot/test Loading commit data...
public Loading commit data...
resources Loading commit data...
static Loading commit data...
application.properties Loading commit data...
custom-config-name.properties Loading commit data...
test-property-source-annotation.properties Loading commit data...
test.groovy Loading commit data...