diff --git a/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java b/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java index 6631ae4d9..ee2f6cf5e 100644 --- a/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java +++ b/functional-tests/http/src/test/java/org/mule/test/http/functional/requester/HttpRequestExpectHeaderFailTestCase.java @@ -8,7 +8,11 @@ import static org.mule.runtime.http.api.HttpConstants.HttpStatus.EXPECTATION_FAILED; -import static org.junit.Assert.assertThat; +import static java.lang.System.getProperty; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.is; +import static org.junit.Assume.assumeThat; import org.mule.extension.http.api.HttpResponseAttributes; import org.mule.runtime.core.api.event.CoreEvent; @@ -31,6 +35,9 @@ protected String getConfigFile() { @Test public void handlesExpectationFailedResponse() throws Exception { + // TODO (W-15666548): Enable this for NETTY too. + assumeThat(getProperty("mule.http.service.implementation", "GRIZZLY"), is("GRIZZLY")); + startExpectFailedServer(); // Set a payload that will fail when consumed. As the server rejects the request after processing @@ -48,5 +55,4 @@ public int read() throws IOException { stopServer(); } - }