@@ -40,7 +40,8 @@ public void init() {
4040
4141 @ Test
4242 public void testGet () {
43- LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (Constant .OUTPUT_DIR ,"test" );
43+ LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (
44+ Args .getInstance ().getOutputDirectory (), "test" );
4445 dataSource .initDB ();
4546 String key1 = "000134yyyhy" ;
4647 byte [] key = key1 .getBytes ();
@@ -52,7 +53,8 @@ public void testGet() {
5253
5354 @ Test
5455 public void testGetBlock () {
55- LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (Constant .OUTPUT_DIR ,
56+ LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (
57+ Args .getInstance ().getOutputDirectory (),
5658 "properties" );
5759 dataSource .initDB ();
5860 String key1 = "latest_block_header_number" ;
@@ -65,7 +67,8 @@ public void testGetBlock() {
6567
6668 @ Test
6769 public void testPutBloc () {
68- LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (Constant .OUTPUT_DIR ,
70+ LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (
71+ Args .getInstance ().getOutputDirectory (),
6972 "block" );
7073 dataSource .initDB ();
7174 String key1 = "latest_block_header_number" ;
@@ -84,7 +87,8 @@ public void testPutBloc() {
8487
8588 @ Test
8689 public void testPut () {
87- LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (Constant .OUTPUT_DIR ,
90+ LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (
91+ Args .getInstance ().getOutputDirectory (),
8892 "test" );
8993 dataSource .initDB ();
9094 String key1 = "000134yyyhy" ;
@@ -104,7 +108,8 @@ public void testPut() {
104108 @ Test
105109 public void testRest () {
106110
107- LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (Constant .OUTPUT_DIR , "test" );
111+ LevelDbDataSourceImpl dataSource = new LevelDbDataSourceImpl (
112+ Args .getInstance ().getOutputDirectory (), "test" );
108113 dataSource .resetDb ();
109114 dataSource .closeDB ();
110115 }
0 commit comments