- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testGetCharset_tooMany (0.3 seconds)
-
guava-tests/test/com/google/common/net/MediaTypeTest.java
@J2ktIncompatible @GwtIncompatible // Non-UTF-8 Charset public void testGetCharset_utf16() { assertThat(MediaType.parse("text/plain; charset=utf-16").charset()).hasValue(UTF_16); } public void testGetCharset_tooMany() { MediaType mediaType = MediaType.parse("text/plain; charset=utf-8; charset=utf-16"); assertThrows(IllegalStateException.class, mediaType::charset); } public void testGetCharset_illegalCharset() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 20.4K bytes - Click Count (0)