I'm working a program which is parsing some files and than process these files. The parser is well tested, but I have to test the processing part too. The problem is to unit test functions I need big objects which comes from the parser. I don't want to create manually objects(it's too much time). My goal is to refactor some process functions because some function do a lot of thing and working with huge objects.
The language is java, and I use JUnit.
I tried to save objects and load in the unit test, but this is the only way? Any suggestions?
Thanks in advance, Peter