java - Junit running subclass invokes superclass testcases -


this question has answer here:

say there're 2 junit classes, bigtest , smalltest. smalltest subclass of bigtest, , both contain tests. when trying run smalltest in eclipse junit testing, testcases in both classes run, instead of testcases in smalltest being run. why so? there way run smalltest's testcases without invoking bigtest's testcases?

if derive 1 test other (which consider bad practise) derived class inherits methods.
junitrunner searches methods starts "test", , finds of course methods parent , sub class.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -