Typically in junit 3.8, you have to write a subclass of TestCase where you can overwrite some methods. The test classes will then have to extend your class...
Sure. Please post a bug on Sourceforge: http://sourceforge.net/project/junit Thanks, David Saff ... [Non-text portions of this message have been removed]...
It would be way more useful if this annotation could be applied to a non-static method. The same could be said for @BeforeClass but at least you can put code...
... Guessing but perhaps: http://www.greenpeppersoftware.com/en/products/greenpepper/features/ It seems like a FitNesse style plugin for confluence but I have ...
Paul King
paulk@...
Mar 3, 2009 12:42 pm
21410
The example in the doc is wrong, but the error is, that the field is not definied static. You want to share the same object across multiple test-objects. There...
... Stuff that you put in the constructor gets executed for every test method in your class. So, it's much more like @Before than like @BeforeClass. Take care,...
Nope Confluence. They have a "jUnit macro" that will embed a summary of tests in a wiki page. I am trying to get something a bit more comprehensive, such as a...
Hi Everyone, can anyone tell me how to assert equality of two objects such as array of bytes or Files in junit 3.8.1? using Assert.assertEquals(File1, File2)...
We use confluence, but not to track test results. We just run the tests in Team City and generate reports. Any build artefacts (including test reports) are...
... It does, but to do so it uses the objects .equals() method (how else?), so it requires that that method do something sensible. If it doesn't, you'll...
... It would also violate the basics of good design and test isolation. I would never want something shared across multiple objects that was instance-level;...
... Also, don't compare File objects for equality, because that's ambiguous. Do you want to compare file basenames? or file paths? or file contents? The first...
It makes sense to use BeforeClass and AfterClass in integration tests when you need to initialize expensive resources such the spring context, hibernate...
... I agree. No reason those fields have to be instance-level. If multiple instances of tests plan to share them, then, by definition, they ought to be...
With JUnit4, we can have parameterized tests with @RunWith(value = Parameterized.class) and @Parameters, But in any JUnit reporting interface(UI, xml and its...
Anfernee, Can you check the feature requests at http://sourceforge.net/projects/junit/ and make sure that there's one there for what you want? Thanks, David...
One thing about the "logging of assertions" is reporting on the Actual/Observed results. I work at a company that makes Medical Devices. The FDA, as we're told...
... Hi David, I checked the request tracker page, http://sourceforge.net/tracker/index.php?func=detail&aid=1742040&group_id=15278&atid=365278 is similar to...
I haven't ever worked on an FDA-certified project, so this is just idle curiousity, but would they require a log for every test ever run? With JUnit Max I run...
I was about to ask if it wouldn't it be suffisent to have a report with only Pass/Failure stored with the sources of the test (without which "Smith" = "Smith"...
Tuomas, I apologize for the long delay in replying. I was just avoiding conflict, which isn't fair to you. I still see the API you suggest as too "magical" for...
If anyone has direct experience on the FDA requirement in question, and it's direct application to unit testing, I'd certainly love to hear more. David Saff...
Hi David, FDA requirements vary from project to project but for the Software development parts, they come down to outlining the process you will follow and...
Greetings, We (Ewan Tempero, University of Auckland, New Zealand, and Tony Gorscheck, Blekinge Institute of Technology, Sweden) are looking for software ...
Kent, I appreciate your reply. We currently have a copy of AnnotatedBuilder in JDave, and are relying on classpath ordering to load our copy before JUnit's...
Hi, Is there going to be listener that support @BeforeClass and @AfterClass ? I was able to implement this but for doing so I was need to override the junit...