All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.confluex.mule.test.http.expectations.HeaderExpectation.groovy Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
package com.confluex.mule.test.http.expectations

import com.confluex.mule.test.http.ClientRequest
import groovy.transform.ToString

@ToString(includeNames = true)
class HeaderExpectation implements Expectation {

    String key
    String value

    HeaderExpectation(String key, String value) {
        this.key = key
        this.value = value
    }

    @Override
    Boolean verify(ClientRequest request) {
        return request.headers[key] == value
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy