[Junitdoclet-users] Re: JUnit 3.8.1
Brought to you by:
sgemkow
From: <ste...@ob...> - 2002-12-10 22:10:33
|
Matt asked a question, I'd like to answer: > Are the any plans to support Junit 3.8.1 style syntax soon? Well, it does already. What do you mean? I assume (this is just guessing) you have trouble with some accessor test for a double (or float) value. The third parameter of assertEquals(double expected, double actual, double delta) (the delta) is not there. Right? This is not a bug, it's a feature. Let me explain: What delta would fit every need? (We would like to use it. ;-)) Why did Kent and Erich came up with that third parameter anyway? -> Because only YOU know, what is appropriate. Don't trust a tool that is thinking for you. JUnitDoclet does not think, so you don't need to outsmart it. JUnitDoclet is behaving in a predictable way, so whenever you should decide, the compiler will point you to the place begging for your decision. Because that is in between markers, JUnitDoclet does remember your decision, it won't ask for the same thing twice. Again, this answer is just based on a wild guess. Matt, if this is not your problem, please be more specific about the syntax of JUnit 3.8.1 you want to use. BTW: Thanks for pointing me to the error in the FAQ regarding "-source 1.4" vs. "-source=1.4". I've fixed it. Regards, Steffen Gemkow -- ObjectFab GmbH ste...@ob... |