EtiennePerot / fuse-jna

No-nonsense, actually-working Java bindings to FUSE using JNA.
http://fusejna.net/
Other
137 stars 43 forks source link

Introduce an interface for DirectoryFiller to allow testing #15

Closed centic9 closed 11 years ago

centic9 commented 11 years ago

In JGitFS I tried to unit test some of my code, but failed to create a unit test for the readdir() implementation because DirectoryFiller is an implementation class which cannot be instantiated at all from outside of fuse-jna.

This patch introduces an interface DirectoryFiller and moves the implementation into an implementation class. This way I can create a dummy implementation for my unit tests. No actual code-change takes place, only moving of actual code into new class.

EtiennePerot commented 11 years ago

Sorry, I had forgotten about this. Github didn't notify me about the new commit... Anyway, merged.