Implementing Test instead of extending TestCase in Junit [Java] -


i have class c must extend class n because provides functionality must have. want c junit test want extend testcase, because using test executor, junit suite object, requires tests being added of type testcase. means have use testcase extension.

java, however, not allow multiple inheritance, need to, instead, use interface. there existing interface? or there way dynamically execute junit tests don't extend testcase?

i don't extend test or testcase anymore. use @test annotations since version 4.4.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -