private Response assertOutdatedStatus ( boolean outdated ) throws JSONException { Response response = httpGet ( "keys/" + keyName ) ; JSONObject actual = new JSONObject ( response . asString ( ) ) ; Assertions . assertThat ( actual . getBoolean ( "outdated" ) ) . isEqualTo ( outdated ) ; return response ; }
Checks the outdated state of the key .