File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
common/unsafe/src/test/java/org/apache/spark/unsafe/types Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 2929import org .apache .spark .unsafe .memory .ByteArrayMemoryBlock ;
3030import org .apache .spark .unsafe .memory .MemoryBlock ;
3131import org .apache .spark .unsafe .memory .OnHeapMemoryBlock ;
32- import org .junit .Ignore ;
3332import org .junit .Test ;
3433
3534import static org .junit .Assert .*;
@@ -516,22 +515,6 @@ public void soundex() {
516515 assertEquals (fromString ("世界千世" ).soundex (), fromString ("世界千世" ));
517516 }
518517
519- @ Ignore
520- public void writeToOutputStreamUnderflow () throws IOException {
521- // offset underflow is apparently supported?
522- final ByteArrayOutputStream outputStream = new ByteArrayOutputStream ();
523- final byte [] test = "01234567" .getBytes (StandardCharsets .UTF_8 );
524-
525- for (int i = 1 ; i <= Platform .BYTE_ARRAY_OFFSET ; ++i ) {
526- new UTF8String (
527- new ByteArrayMemoryBlock (test , Platform .BYTE_ARRAY_OFFSET - i , test .length + i ))
528- .writeTo (outputStream );
529- final ByteBuffer buffer = ByteBuffer .wrap (outputStream .toByteArray (), i , test .length );
530- assertEquals ("01234567" , StandardCharsets .UTF_8 .decode (buffer ).toString ());
531- outputStream .reset ();
532- }
533- }
534-
535518 @ Test
536519 public void writeToOutputStreamSlice () throws IOException {
537520 final ByteArrayOutputStream outputStream = new ByteArrayOutputStream ();
You can’t perform that action at this time.
0 commit comments