[TEST] Fixed GetTermVectorTests, added missing break statements in randomization switch

This commit is contained in:
javanna 2014-08-04 17:16:10 +02:00 committed by Luca Cavanna
parent 24a1a0f07f
commit 74aa35bdcd
1 changed files with 7 additions and 0 deletions

View File

@ -214,33 +214,40 @@ public class GetTermVectorTests extends AbstractTermVectorTests {
switch (config) {
case 0: {
// do nothing
break;
}
case 1: {
storeTermVectors = true;
break;
}
case 2: {
storeTermVectors = true;
storePositions = true;
break;
}
case 3: {
storeTermVectors = true;
storeOffsets = true;
break;
}
case 4: {
storeTermVectors = true;
storePositions = true;
storeOffsets = true;
break;
}
case 5: {
storeTermVectors = true;
storePositions = true;
storePayloads = true;
break;
}
case 6: {
storeTermVectors = true;
storePositions = true;
storeOffsets = true;
storePayloads = true;
break;
}
}
ft.setStoreTermVectors(storeTermVectors);