mardi 2 juin 2015

Where to store a binary file to be used for unit testing

Is there a standard or best practice on where to store a resource (binary file in my case) that I need to use for unit testing?

Specifically, my directory structure is a standard:

src -> main -> java -> com.company.project -> classes...
    -> test -> java -> com.company.project -> classes...

I want to mock a file being read from the file system and replace it with a file from within my project.

Aucun commentaire:

Enregistrer un commentaire