- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testWithParametersIterable_invalidAttribute (0.14 seconds)
-
guava-tests/test/com/google/common/net/MediaTypeTest.java
assertEquals( MediaType.parse("text/plain; a=1; a=2; b=3; b=4"), MediaType.parse("text/plain; a=1; a=2").withParameters("b", ImmutableSet.of("3", "4"))); } public void testWithParametersIterable_invalidAttribute() { MediaType mediaType = MediaType.parse("text/plain"); assertThrows( IllegalArgumentException.class, () -> mediaType.withParameters("@", ImmutableSet.of("2"))); }
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)