Add missing tests
This commit is contained in:
@@ -77,7 +77,7 @@ public abstract class AbstractEndpointTests<T extends Endpoint<?>> {
|
||||
|
||||
@Test
|
||||
public void producesMediaType() {
|
||||
assertThat(getEndpointBean().getProduces(), equalTo(this.produces));
|
||||
assertThat(getEndpointBean().produces(), equalTo(this.produces));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -20,8 +20,7 @@ import java.util.Arrays;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.boot.actuate.endpoint.AbstractEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.ActionEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerMapping;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.mock.web.MockHttpServletRequest;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
@@ -112,12 +111,16 @@ public class EndpointHandlerMappingTests {
|
||||
|
||||
}
|
||||
|
||||
private static class TestActionEndpoint extends TestEndpoint implements
|
||||
ActionEndpoint<Object> {
|
||||
private static class TestActionEndpoint extends TestEndpoint {
|
||||
|
||||
public TestActionEndpoint(String path) {
|
||||
super(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpMethod[] methods() {
|
||||
return POST_HTTP_METHOD;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user