At the moment I have an abstract class which implements an interface. All implementations extend the abstract class to make there own implementation of the interface methods.
The abstract class holds methods which are the same for each implementation f.e. an execute method. I don't want to include the same 'execute' test for each implementation class.
I can successfully test the execute method in the abstract class by creating a test class for one of the implementation classes. The problem is that there will be more classes extending this abstract class and I don't want to write the same execute test in each of those classes.
I would like to somehow test the execute method from the abstract class only once in a specific test class so I can test only the implementation logic of all the other classes.