File tree Expand file tree Collapse file tree
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,31 +300,25 @@ void illegalStateExceptionShouldBeThrownWhenIterableExceededNestingDepth() {
300300 void shouldAllowStartingObjectWhenCurrentDepthIsMaxDepth () {
301301 StringBuilder out = new StringBuilder ();
302302 JsonValueWriter writer = new JsonValueWriter (out , 2 );
303-
304303 writer .start (Series .OBJECT );
305304 writer .start (Series .OBJECT );
306305 writer .start (Series .OBJECT );
307-
308306 writer .end (Series .OBJECT );
309307 writer .end (Series .OBJECT );
310308 writer .end (Series .OBJECT );
311-
312309 assertThat (out ).hasToString ("{{{}}}" );
313310 }
314311
315312 @ Test
316313 void shouldAllowStartingArrayWhenCurrentDepthIsMaxDepth () {
317314 StringBuilder out = new StringBuilder ();
318315 JsonValueWriter writer = new JsonValueWriter (out , 2 );
319-
320316 writer .start (Series .ARRAY );
321317 writer .start (Series .ARRAY );
322318 writer .start (Series .ARRAY );
323-
324319 writer .end (Series .ARRAY );
325320 writer .end (Series .ARRAY );
326321 writer .end (Series .ARRAY );
327-
328322 assertThat (out ).hasToString ("[[[]]]" );
329323 }
330324
You can’t perform that action at this time.
0 commit comments