TestEncodeHeaderRequestTwoWay tests EncodeHeader for two-way request packages
(t *testing.T)
| 136 | |
| 137 | // TestEncodeHeaderRequestTwoWay tests EncodeHeader for two-way request packages |
| 138 | func TestEncodeHeaderRequestTwoWay(t *testing.T) { |
| 139 | codec := NewDubboCodec(nil) |
| 140 | pkg := NewDubboPackage(nil) |
| 141 | pkg.Header.Type = PackageRequest_TwoWay |
| 142 | pkg.Header.SerialID = constant.SHessian2 |
| 143 | pkg.Header.ID = 22222 |
| 144 | |
| 145 | header := codec.EncodeHeader(*pkg) |
| 146 | assert.NotNil(t, header) |
| 147 | assert.NotEmpty(t, header) |
| 148 | } |
| 149 | |
| 150 | // TestProtocolCodecSetSerializer tests SetSerializer method of ProtocolCodec |
| 151 | func TestProtocolCodecSetSerializer(t *testing.T) { |
nothing calls this directly
no test coverage detected