
com.confluex.mock.http.expectations.HeaderExpectation.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of confluex-mock-http Show documentation
Show all versions of confluex-mock-http Show documentation
Testing library for mocking interactions to external HTTP servers
package com.confluex.mock.http.expectations
import com.confluex.mock.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