How can I split abstract testcases in JUnit?
- by Willi Schönborn
I have an abstract testcase "AbstractATest" for an interface "A". It has several test methods (@Test) and one abstract method:
protected abstract A unit();
which provides the unit under testing. No i have multiple implementations of "A", e.g. "DefaultA", "ConcurrentA", etc.
My problem:
The testcase is huge (~1500 loc) and it's growing. So i…