zoltanmeze commented on code in PR #518: URL: https://github.com/apache/maven-surefire/pull/518#discussion_r849297428
########## surefire-api/src/test/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoderTest.java: ########## @@ -258,6 +258,56 @@ public void shouldReadString() throws Exception .isEqualTo( "0123456789" ); } + @Test + public void shouldReadStringOverflowOnNewLine() throws Exception + { + StringBuilder s = new StringBuilder( 1025 ); + for ( int i = 0; i < 10; i++ ) + { + s.append( PATTERN1 ); + } + s.append( PATTERN1, 0, 23 ); + s.append( "\u00FA\n" ); // 2-bytes encoded character + LF + + Channel channel = new Channel( s.toString().getBytes( UTF_8 ), s.length() ); + + Mock thread = new Mock( channel, new MockForkNodeArguments(), + Collections.<Segment, ForkedProcessEventType>emptyMap() ); Review Comment: Sure. Other test methods are also using explicit type arguments, so just used the same way. For consistency replaced in all places in this class, see [0b1c564](https://github.com/apache/maven-surefire/pull/518/commits/0b1c564779d924901c9bd3f88482fe1f33964bdb). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org