@@ -71,15 +71,13 @@ public class Upgrader11to12Test {
71
71
72
72
@ Test
73
73
void upgradeDataFileCF2Test () {
74
- Upgrader11to12 upgrader = new Upgrader11to12 ();
75
-
76
74
String fileName = "hdfs://localhost:8020/accumulo/tables/12/default_tablet/A000000v.rf" ;
77
75
Key k = Key .builder ().row (new Text ("12;" )).family (DataFileColumnFamily .NAME )
78
76
.qualifier (new Text (fileName )).build ();
79
77
Value v = new Value ("1234,5678" );
80
78
81
79
Mutation upgrade = new Mutation (k .getRow ());
82
- upgrader .upgradeDataFileCF (k , v , upgrade );
80
+ Upgrader11to12 .upgradeDataFileCF (k , v , upgrade );
83
81
84
82
var pending = upgrade .getUpdates ();
85
83
assertEquals (2 , pending .size ());
@@ -105,7 +103,7 @@ void upgradeDataFileCF2Test() {
105
103
}
106
104
107
105
@ Test
108
- public void processReferencesTest () throws Exception {
106
+ public void processReferencesTest () {
109
107
110
108
// create sample data "served" by the mocked scanner
111
109
TreeMap <Key ,Value > scanData = new TreeMap <>();
@@ -161,7 +159,7 @@ public void processReferencesTest() throws Exception {
161
159
}
162
160
163
161
@ Test
164
- public void skipConvertedFileTest () throws Exception {
162
+ public void skipConvertedFileTest () {
165
163
// create sample data "served" by the mocked scanner
166
164
TreeMap <Key ,Value > scanData = new TreeMap <>();
167
165
Text row1 = new Text ("123" );
@@ -288,7 +286,7 @@ void unexpectedColFailsTest() throws Exception {
288
286
* called for those rows
289
287
*/
290
288
@ Test
291
- public void verifyEmptyMutation () throws Exception {
289
+ public void verifyEmptyMutation () {
292
290
// create sample data "served" by the mocked scanner
293
291
TreeMap <Key ,Value > scanData = new TreeMap <>();
294
292
@@ -377,21 +375,6 @@ public void upgradeZooKeeperTest() throws Exception {
377
375
verify (context , zrw );
378
376
}
379
377
380
- @ Test
381
- public void fileConversionTest () {
382
- String s21 = "hdfs://localhost:8020/accumulo/tables/1/t-0000000/A000003v.rf" ;
383
- String s31 =
384
- "{\" path\" :\" hdfs://localhost:8020/accumulo/tables/1/t-0000000/A000003v.rf\" ,\" startRow\" :\" \" ,\" endRow\" :\" \" }" ;
385
- String s31_untrimmed =
386
- " { \" path\" :\" hdfs://localhost:8020/accumulo/tables/1/t-0000000/A000003v.rf\" ,\" startRow\" :\" \" ,\" endRow\" :\" \" } " ;
387
-
388
- Upgrader11to12 upgrader = new Upgrader11to12 ();
389
-
390
- assertTrue (upgrader .fileNeedsConversion (s21 ));
391
- assertFalse (upgrader .fileNeedsConversion (s31 ));
392
- assertFalse (upgrader .fileNeedsConversion (s31_untrimmed ));
393
- }
394
-
395
378
@ Test
396
379
public void convertRoot1File () {
397
380
String root21ZkData =
0 commit comments