mirror of https://github.com/grpc/grpc-java.git
Add two extra cases to make edge case testing more obvious.
This commit is contained in:
parent
8986fc3412
commit
238a4cb620
|
|
@ -65,8 +65,10 @@ public class HttpUtilTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void http2ErrorNoCodeStatus() {
|
||||
public void http2ErrorStatusForCode() {
|
||||
assertSame(Status.Code.INTERNAL, Http2Error.statusForCode(-1).getCode());
|
||||
assertSame(Http2Error.NO_ERROR.status(), Http2Error.statusForCode(0));
|
||||
assertSame(Http2Error.HTTP_1_1_REQUIRED.status(), Http2Error.statusForCode(0xD));
|
||||
assertSame(Status.Code.INTERNAL, Http2Error.statusForCode(0xD + 1).getCode());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue