提交 69973d98 编写于 作者: R Rossen Stoyanchev

Fix test failure

上级 623874b4
......@@ -20,8 +20,6 @@ import java.util.Collections;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.web.HttpMediaTypeNotAcceptableException;
import org.springframework.web.ResponseStatusException;
......@@ -45,7 +43,7 @@ public class DispatcherHandlerExceptionMapperTests {
@Test
public void handlerNotFound() throws Exception {
Throwable ex = new HandlerNotFoundException(HttpMethod.GET, "/path", new HttpHeaders());
Throwable ex = new HandlerNotFoundException();
ex = this.mapper.apply(ex);
assertEquals(ResponseStatusException.class, ex.getClass());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册