testing - Making a JUnit test case for an abstract java class? -


this question has answer here:

i have develop junit test cases application has several abstract classes , methods. is possible create junit test cases abstract classes without being extended class? if subclass extends abstract class, enough test subclass? how create test cases non abstract methods of abstract class?

since cannot create instance of abstract class must use derived class test it. can create simple class extends abstract class testing purposes. when testing ensure subclass used test methods requiring testing in abstract class.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -