1 package org
.apache
.thrift
.protocol
;
3 import org
.apache
.thrift
.TDeserializer
;
4 import org
.apache
.thrift
.TSerializer
;
6 import thrift
.test
.TupleProtocolTestStruct
;
9 public class TestTTupleProtocol
extends ProtocolTestBase
{
12 protected boolean canBeUsedNaked() {
17 protected TProtocolFactory
getFactory() {
18 return new TTupleProtocol
.Factory();
21 public void testBitsetLengthIssue() throws Exception
{
22 final TupleProtocolTestStruct t1
= new TupleProtocolTestStruct();
25 new TDeserializer(new TTupleProtocol
.Factory()).deserialize(new TupleProtocolTestStruct(), new TSerializer(new TTupleProtocol
.Factory()).serialize(t1
));