I have a class C which must extend a class N because it provides functionality I must have. I want C to be a JUnit test so I want to extend TestCase, because I am using a test executor, a Junit suite object, which requires tests being added to be it to be of type TestCase. This means that I have to use the TestCase extension.
Java, however, does not allow for multiple inheritance, so I need to, instead, use an interface. Is there an existing interface? Or is there a way to dynamically execute Junit tests that don't extend from TestCase?