Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Testing the functionality of sub classes Date: Sun, 20 Aug 2017 01:22:09 +0200 Organization: Decebal Computing Lines: 24 Message-ID: <87tw13f8im.fsf@munus.decebal.nl> References: <87fucnh2wu.fsf@munus.decebal.nl> <87y3qffim5.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="a3233d099e71e24d901953f13bac9801"; logging-data="16191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dxSt8coTdW0erM6ctWRT5fJxbKngE8C0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:woOfIKBnV8OTgaqiOm3/l862CNE= sha1:PWvONlEV6/a2bZqfb7fzKmqHCaY= Xref: csiph.com comp.lang.java.programmer:37303 ram@zedat.fu-berlin.de (Stefan Ram) writes: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >>maybe you are using a test framework that makes it very easy >>to do this, but I can't tell you how, because I do not know >>test frameworks well. > > Maybe when you skim the pages of the manual of the test > framework you use, you can find something about it. > > For example, if you should use JUnit, have a look at: > > github.com/junit-team/junit4/wiki/Parameterized-tests > > . There, in the data method you can fill the array > with objects of the different subclasses and have > each test be executed for each of those objects. Thanks, I will evaluate that. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof