Skip to content

Commit 6c0d95a

Browse files
author
Janelle Law
committed
Fix long string formatting
1 parent 205438b commit 6c0d95a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/io/cryostat/net/web/http/api/v2/RulesPostHandlerTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ void throwsIfOptionalJsonIntegerAttributesNegative() {
227227
headers.set(HttpHeaders.CONTENT_TYPE, HttpMimeType.JSON.mime());
228228

229229
String invalidRule =
230-
"{\"name\":\"Invalid_Rule\",\"description\":\"AutoRulesIT automated rule\",\"eventSpecifier\":\"template=Continuous,type=TARGET\",\"targetAlias\":\"es.andrewazor.demo.Main\",\"archivalPeriodSeconds\":-60,\"preservedArchives\":10,\"maxAgeSeconds\":0}";
230+
"{\"name\":\"Invalid_Rule\","
231+
+"\"description\":\"AutoRulesIT automated rule\","
232+
+"\"eventSpecifier\":\"template=Continuous,type=TARGET\","
233+
+"\"targetAlias\":\"es.andrewazor.demo.Main\","
234+
+"\"archivalPeriodSeconds\":-60}";
231235
Mockito.when(params.getBody()).thenReturn(invalidRule);
232236

233237
ApiException ex =

0 commit comments

Comments
 (0)