()
| 31 | private final Charset ascii = Charset.forName("US-ASCII"); |
| 32 | |
| 33 | @Test |
| 34 | public void verifyExceptionMessage() { |
| 35 | assertEquals("UNKNOWN", Status.UNKNOWN.asRuntimeException().getMessage()); |
| 36 | assertEquals("CANCELLED: This is a test", |
| 37 | Status.CANCELLED.withDescription("This is a test").asRuntimeException().getMessage()); |
| 38 | assertEquals("UNKNOWN", Status.UNKNOWN.asException().getMessage()); |
| 39 | assertEquals("CANCELLED: This is a test", |
| 40 | Status.CANCELLED.withDescription("This is a test").asException().getMessage()); |
| 41 | } |
| 42 | |
| 43 | @Test |
| 44 | public void impossibleCodeValue() { |
nothing calls this directly
no test coverage detected