Skip to content

Commit b812111

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 07f5605 commit b812111

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

server/src/test/java/org/elasticsearch/ElasticsearchExceptionTests.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,15 +1630,15 @@ public void testExceptionTypeHeader() throws IOException {
16301630
assertEquals(XContentHelper.stripWhitespace(expected), Strings.toString(builder));
16311631
}
16321632

1633-
public void testHttpHeaders() throws IOException {
1634-
var e = new ElasticsearchException("some exception");
1635-
e.addHttpHeader("My-Header", "value");
1636-
assertThat(e.getHttpHeaderKeys(), hasItem("My-Header"));
1637-
assertThat(e.getHttpHeader("My-Header"), equalTo(List.of("value")));
1638-
assertThat(e.getHttpHeaders(), hasEntry("My-Header", List.of("value")));
1639-
1640-
// ensure http headers are not written to response body
1641-
}
1633+
public void testHttpHeaders() throws IOException {
1634+
var e = new ElasticsearchException("some exception");
1635+
e.addHttpHeader("My-Header", "value");
1636+
assertThat(e.getHttpHeaderKeys(), hasItem("My-Header"));
1637+
assertThat(e.getHttpHeader("My-Header"), equalTo(List.of("value")));
1638+
assertThat(e.getHttpHeaders(), hasEntry("My-Header", List.of("value")));
1639+
1640+
// ensure http headers are not written to response body
1641+
}
16421642

16431643
public void testNoExceptionTypeHeaderOn4xx() throws IOException {
16441644
var e = new Exception4xx("some exception");
@@ -1649,13 +1649,13 @@ public void testNoExceptionTypeHeaderOn4xx() throws IOException {
16491649
e.toXContent(builder, ToXContent.EMPTY_PARAMS);
16501650
builder.endObject();
16511651
String expected = """
1652-
{
1653-
"type": "exception4xx",
1654-
=======
1655-
"type": "exception",
1656-
>>>>>>> main
1657-
"reason": "some exception"
1658-
}""";
1652+
{
1653+
"type": "exception4xx",
1654+
=======
1655+
"type": "exception",
1656+
>>>>>>> main
1657+
"reason": "some exception"
1658+
}""";
16591659
assertEquals(XContentHelper.stripWhitespace(expected), Strings.toString(builder));
16601660
}
16611661
}

0 commit comments

Comments
 (0)