I need to test a program that first preprocesses some data and then calculates several different results using these preprocessed data - it makes sense to write a separate test for each calculation.
JUnit's official policy seems to be that I have to do preprocessing before each calculation test. How do I set up my test so that I can run the preparation only once (rather slowly) before running the remaining tests?
Aivar source share