Commit b14c607d authored by Christian Dupuis's avatar Christian Dupuis

Add missing tests

parent 405c9d55
......@@ -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;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment