1717
1818package org .apache .hadoop .ozone .recon .codec ;
1919
20- import static org .junit .jupiter .api .Assertions .assertEquals ;
2120import static org .junit .jupiter .api .Assertions .assertArrayEquals ;
21+ import static org .junit .jupiter .api .Assertions .assertEquals ;
2222
2323import java .util .HashSet ;
2424import java .util .Set ;
25-
2625import org .apache .hadoop .hdds .utils .db .Codec ;
2726import org .apache .hadoop .hdds .utils .db .CodecBuffer ;
2827import org .apache .hadoop .ozone .recon .ReconConstants ;
@@ -49,7 +48,7 @@ public void testCodecBufferRoundTrip() throws Exception {
4948 @ Test
5049 public void testCodecBufferEmptyDirectory () throws Exception {
5150 NSSummary original = new NSSummary ();
52- original .setDirName ("/ empty" );
51+ original .setDirName ("empty" );
5352 original .setParentId (42L );
5453
5554 CodecBuffer buffer = codec .toCodecBuffer (original , CodecBuffer .Allocator .DIRECT );
@@ -61,7 +60,7 @@ public void testCodecBufferEmptyDirectory() throws Exception {
6160 @ Test
6261 public void testCodecBufferLargeDirectory () throws Exception {
6362 NSSummary original = new NSSummary ();
64- original .setDirName ("/ large" );
63+ original .setDirName ("large" );
6564 original .setNumOfFiles (10000 );
6665 original .setSizeOfFiles (1024L * 1024L * 100L ); // 100MB
6766 original .setParentId (999L );
@@ -86,7 +85,7 @@ public void testCodecBufferLargeDirectory() throws Exception {
8685
8786 private NSSummary createTestNSSummary () {
8887 NSSummary summary = new NSSummary ();
89- summary .setDirName ("/ test/directory" );
88+ summary .setDirName ("test/directory" );
9089 summary .setNumOfFiles (100 );
9190 summary .setSizeOfFiles (1024L * 512L ); // 512KB
9291 summary .setParentId (42L );
0 commit comments