I've been struggling coming up with a good solution to separate my testing data from unit tests (hard coded values). Until it dawned on me that I could create beans with spring and use those beans to hold my data.
Are there any draw backs to coding my unit tests this way? Albeit they run a bit slower seeing as how spring has to configure all the beans and what not.