Unit testing without a file system dependency - meet JimFS

Microservices in Java3 Min. 58 Sec. Published On July 05, 2017

Our project is about reading in files and processing them. When we write tests, we could of course simply write and read the files from our local harddrive, but that can get messy. Instead, I'll show you how to work with a fantastic little virtual file system, called JimFS, in this episode. You also learn about its advantages and disadvantages compared to your usual filesystems.

You need to register in order to download source code or track progress.

This video requires a marcobehler.com membership.

Subscribe to any paid plan and get access to all episodes and code.

Start Free Trial Today or Login

Share

Discussion