Format with Eclipse Oxygen SR2
This commit is contained in:
@@ -548,7 +548,7 @@ public class MetricFilterAutoConfigurationTests {
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request,
|
||||
HttpServletResponse response, FilterChain chain)
|
||||
throws ServletException, IOException {
|
||||
throws ServletException, IOException {
|
||||
// send redirect before filter chain is executed, like Spring Security sending
|
||||
// us back to a login page
|
||||
response.sendRedirect("http://example.com");
|
||||
@@ -563,7 +563,7 @@ public class MetricFilterAutoConfigurationTests {
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request,
|
||||
HttpServletResponse response, FilterChain chain)
|
||||
throws ServletException, IOException {
|
||||
throws ServletException, IOException {
|
||||
|
||||
response.sendError(HttpStatus.SERVICE_UNAVAILABLE.value());
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ public class EndpointMBeanExporterTests {
|
||||
|
||||
private ObjectName getObjectName(String domain, String beanKey,
|
||||
boolean includeIdentity, ApplicationContext applicationContext)
|
||||
throws MalformedObjectNameException {
|
||||
throws MalformedObjectNameException {
|
||||
if (includeIdentity) {
|
||||
return ObjectNameManager.getInstance(String.format(
|
||||
"%s:type=Endpoint,name=%s,identity=%s", domain, beanKey, ObjectUtils
|
||||
|
||||
@@ -104,8 +104,8 @@ public class AuditEventsMvcEndpointTests {
|
||||
|
||||
@Test
|
||||
public void invokeFilterByPrincipalAndDateAfter() throws Exception {
|
||||
this.mvc.perform(get("/auditevents").param("principal", "user").param("after",
|
||||
"2016-11-01T10:00:00+0000"))
|
||||
this.mvc.perform(get("/auditevents")
|
||||
.param("principal", "user").param("after", "2016-11-01T10:00:00+0000"))
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(content().string(
|
||||
containsString("\"principal\":\"user\",\"type\":\"login\"")))
|
||||
|
||||
Reference in New Issue
Block a user