mirror of
https://github.com/google/nomulus
synced 2025-12-23 14:25:44 +00:00
Use Java 17 feature (#2341)
This was somehow missed in #2333 <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/2341) <!-- Reviewable:end -->
This commit is contained in:
@@ -45,10 +45,9 @@ class TeeOutputStreamTest {
|
||||
outputB.write("b".getBytes(UTF_8));
|
||||
outputC.write("c".getBytes(UTF_8));
|
||||
// Check the results.
|
||||
// TODO: Use toString(StandardCharsets.UTF_8) once we can use Java 17.
|
||||
assertThat(outputA.toString("UTF-8")).isEqualTo("hello world!a");
|
||||
assertThat(outputB.toString("UTF-8")).isEqualTo("hello world!b");
|
||||
assertThat(outputC.toString("UTF-8")).isEqualTo("hello world!c");
|
||||
assertThat(outputA.toString(UTF_8)).isEqualTo("hello world!a");
|
||||
assertThat(outputB.toString(UTF_8)).isEqualTo("hello world!b");
|
||||
assertThat(outputC.toString(UTF_8)).isEqualTo("hello world!c");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user