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
Post a Comment