()
| 652 | } |
| 653 | |
| 654 | @Test |
| 655 | public void builder_setRawFragment_null() { |
| 656 | Uri uri = |
| 657 | Uri.newBuilder() |
| 658 | .setScheme("http") |
| 659 | .setHost("host") |
| 660 | .setRawFragment("a%20b") |
| 661 | .setRawFragment(null) |
| 662 | .build(); |
| 663 | assertThat(uri.getRawFragment()).isNull(); |
| 664 | assertThat(uri.getFragment()).isNull(); |
| 665 | assertThat(uri.toString()).isEqualTo("http://host"); |
| 666 | } |
| 667 | |
| 668 | @Test |
| 669 | public void builder_setRawFragment_invalidCharacters_throws() { |
nothing calls this directly
no test coverage detected