Closes gh-10282
This commit is contained in:
Johnny Lim
2017-09-13 22:26:06 +09:00
committed by Stephane Nicoll
parent d89f3f9f2a
commit bd2d08bcd0
16 changed files with 21 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ public class ConfigurationPropertiesReportEndpointProperties {
/**
* Keys that should be sanitized. Keys can be simple strings that the property ends
* with or regex expressions.
* with or regular expressions.
*/
private String[] keysToSanitize;

View File

@@ -19,7 +19,7 @@ package org.springframework.boot.actuate.autoconfigure.endpoint.web;
import java.util.List;
/**
* Interface that provides path information for web mapped endpints.
* Interface that provides path information for web mapped endpoints.
*
* @author Phillip Webb
* @since 2.0.0

View File

@@ -30,7 +30,7 @@ public class EnvironmentEndpointProperties {
/**
* Keys that should be sanitized. Keys can be simple strings that the property ends
* with or regex expressions.
* with or regular expressions.
*/
private String[] keysToSanitize;

View File

@@ -16,9 +16,7 @@
package org.springframework.boot.actuate.autoconfigure.endpoint;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.boot.actuate.endpoint.DefaultEnablement;
import org.springframework.boot.actuate.endpoint.EndpointExposure;
@@ -35,9 +33,6 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
public class EndpointEnablementProviderTests {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void defaultEnablementDisabled() {
EndpointEnablement enablement = getEndpointEnablement("foo",

View File

@@ -36,7 +36,7 @@ import org.springframework.util.StringUtils;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Integration tests for endpints over JMX.
* Integration tests for endpoints over JMX.
*
* @author Stephane Nicoll
* @author Andy Wilkinson

View File

@@ -34,7 +34,7 @@ import static org.mockito.Mockito.mock;
/**
* Tests for {@link Neo4jHealthIndicatorAutoConfiguration}.
*
* @author Phillp Webb
* @author Phillip Webb
*/
public class Neo4jHealthIndicatorAutoConfigurationTests {

View File

@@ -22,9 +22,7 @@ import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.assertj.core.api.AssertDelegateTarget;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.EndpointPathProvider;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
@@ -43,9 +41,6 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
public class EndpointRequestTests {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void toAnyEndpointShouldMatchEndpointPath() throws Exception {
RequestMatcher matcher = EndpointRequest.toAnyEndpoint();