Merge pull request #18539 from dreis2211

* gh-18539:
  Remove accidental usage of UnsupportedOptionException

Closes gh-18539
This commit is contained in:
Andy Wilkinson
2019-10-10 07:29:12 -05:00

View File

@@ -26,7 +26,6 @@ import javax.servlet.http.HttpServletResponse;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.xnio.channels.UnsupportedOptionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
@@ -190,7 +189,7 @@ public class ErrorPageFilterIntegrationTests {
@Override
public ApplicationContext loadContext(String... locations) {
throw new UnsupportedOptionException();
throw new UnsupportedOperationException();
}
@Override
@@ -200,7 +199,7 @@ public class ErrorPageFilterIntegrationTests {
@Override
protected String getResourceSuffix() {
throw new UnsupportedOptionException();
throw new UnsupportedOperationException();
}
}