Skip to content

Commit

Permalink
Disable testWriteUTF on Windows (#15035)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ authored Jan 5, 2025
1 parent 713388a commit 8e49668
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
Expand Down Expand Up @@ -74,6 +76,7 @@ void testObjectInput() throws IOException {
}

@Test
@DisabledOnOs(OS.WINDOWS) // Charset maynot UTF-8 on Windows JDK 8 ~ 17
void testWriteUTF() throws IOException {
myObjectOutput.writeUTF("Pace");
myObjectOutput.writeUTF("和平");
Expand Down

0 comments on commit 8e49668

Please sign in to comment.