0

In REST-assred test case I am getting ValidatableResponse body as mentioned from which I want to remove notice, created_at, updated_at and deleted_at keys using java 8 lambda expressions and assert it in the test cases by creating common method for this operation.

{
"notice": "Woot! The Settings are updated successfully.",
"settings": {
    "push_notification": {
        "enabled": true,
        "credentials": [{
            "key": "value"   
        }],
        "service_name": "API Testing"
    },
    "analytics": {
        "enabled": false,
        "credentials": []
    },
    "created_at": "2019-05-14T14:52:32.773Z",
    "deleted_at": "false",
    "updated_at": "2019-05-17T05:58:03.295Z"
}

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.