My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 3: Adding parameters to @Prerequisite
  Back to list
Status:  Fixed
Owner:  jo.hil...@googlemail.com
Closed:  Jan 2007
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by nguyen.vietchau, Dec 15, 2006
Currently, JUnitExt supports only prerequisite methods with signature:

public boolean aPrereqMethod ()

What is the expected output? What do you see instead?

It would be nice to be able to pass in a parameter into the methods, such 
as 

public boolean aPrereqMethod (String someString)

This way, the method can be used for different test methods with different 
flag/string input.

What version of the product are you using? On what operating system?
JUnit 4.1, junitext-0.2.0

Thanks, 
Vietchau


Comment 1 by jo.hil...@googlemail.com, Dec 15, 2006
Will add an optional annotation attribute for "parameters", 1 or probably a list of.
The runner will try to match it to a method via reflection based on types.

Status: Accepted
Owner: jo.hiller
Labels: -Type-Defect Type-Enhancement
Comment 2 by jo.hil...@googlemail.com, Jan 04, 2007
Implemented in JUnitExt 0.2.1. For more details, see www.junitext.org and
documentation, samples.

Status: Fixed
Sign in to add a comment

Hosted by Google Code