Searched refs:numItems (Results 1 – 3 of 3) sorted by relevance
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/partial/ |
D | TestPartialThriftDeserializer.java | 135 int numItems = 10; in testPartialComplex() local 136 TestStruct ts1 = testData.createTestStruct(id, numItems); in testPartialComplex() 205 validatePartialComplex(ts1, ts2, id, numItems); in testPartialComplex() 209 validatePartialComplex(ts1, ts2, id, numItems); in testPartialComplex() 213 private void validatePartialComplex(TestStruct ts1, TestStruct ts2, int id, int numItems) { in validatePartialComplex() argument 241 validateList(ts2.getByteList(), id, numItems); in validatePartialComplex() local 242 validateList(ts2.getI16List(), id, numItems); in validatePartialComplex() local 243 validateList(ts2.getI32List(), id, numItems); in validatePartialComplex() local 244 validateList(ts2.getI64List(), id, numItems); in validatePartialComplex() local 245 validateList(ts2.getDoubleList(), id, numItems); in validatePartialComplex() local [all …]
|
D | PartialThriftTestData.java | 47 public TestStruct createTestStruct(int id, int numItems) { in createTestStruct() argument 61 initListFields(ts, id, numItems); in createTestStruct() 62 initSetFields(ts, id, numItems); in createTestStruct() 63 initMapFields(ts, id, numItems); in createTestStruct() 68 public void initListFields(TestStruct ts, int id, int numItems) { in initListFields() argument 69 List<Byte> byteList = new ArrayList<>(numItems); in initListFields() 70 List<Short> i16List = new ArrayList<>(numItems); in initListFields() 71 List<Integer> i32List = new ArrayList<>(numItems); in initListFields() 72 List<Long> i64List = new ArrayList<>(numItems); in initListFields() 73 List<Double> doubleList = new ArrayList<>(numItems); in initListFields() [all …]
|
D | ThriftStructProcessorTest.java | 66 final int numItems = 10; in testList() local 68 Object instance = processor.createNewList(numItems); in testList() 73 for (int i = 0; i < numItems; i++) { in testList() 84 final int numItems = 10; in testMap() local 86 Object instance = processor.createNewMap(numItems); in testMap() 92 for (int i = 0; i < numItems; i++) { in testMap() 103 final int numItems = 10; in testSet() local 105 Object instance = processor.createNewSet(numItems); in testSet() 112 for (int i = 0; i < numItems; i++) { in testSet()
|