jsondb-core icon indicating copy to clipboard operation
jsondb-core copied to clipboard

Use java.nio for all file operations

Open nterry opened this issue 6 years ago • 2 comments

This would allow for alternate Filesystem implementations to be used such as JimFS and such for unit tests.

nterry avatar Mar 22 '19 22:03 nterry

I had not realised this, I will try to check this out and fix it when i get some time.

FarooqKhan avatar Apr 13 '19 06:04 FarooqKhan

@FarooqKhan Yeah man, check out JimFS here: https://github.com/google/jimfs

It would allow users such as myself to unit test without having to mock. You could have a constructor accept a java.nio.FileSystem object and default to the default filesystem.

nterry avatar Apr 15 '19 19:04 nterry