Hi guys, JUnit4 comes with a nice annotation that supports checking for a special exception: @Test(expected=MyException.class) Well, the exception contains an...
Hello, I have gotten some strange error/failure messages with square braces in my strings. I have searched through the forum and don't seem to find any similar...
The file always dies after the 1016th case, meaning taht I can switch tests around but it will still die at the same place. For example,I can put the code at...
I have a txt file that I need to update. The txt file has the following columns, delimited by tabs: Date Name Age Then I have a method called updateFile()....
Hi, I'm using JUnit 4.3.1 with Java 1.5 on a Mac 10.5.6. We have a particular JUnit file that tests a web service client against a web service running...
All, For the last six weeks, I've been on paternity leave, which brought forward progress on JUnit to an even slower crawl than usual. In starting back up, we...
Hello, I'm looking for some advice on the best way to setup this test scenario... * Tests are run from Ant using a fileset with wildcards (so that we don't...
A little over a week ago I decided to update my Java TDD course. I wanted to add a section that describes BDD or possibly even write a new course that teaches...
Hello everyone. :-) Junit Starter here.. I supposed to write the unittests for a bigger project. My colleague has written a generic list class. What would be...
Eclipse (and various online sources) tell me the extension point org.eclipse.jdt.junit.testRunListeners is deprecated. After some hours of research I still...
Hi Is anyone knows how to get the current executing test method name in the setup method before executing the test method in Junit 3.8. Thanks in Advance. ...
Hi, What would be the best way to separate test data in the form of text files, excel or xml to keep the test data. The test code should pick the test data...
http://junit.sourceforge.net/doc/faq/faq.htm#organize_1 Using this article I followed the instrunctions under Running Tests: In step 3 I have the full package...
Hi, Kent/David. Just did some testing and it seems that the execution chain with interceptors is actually: - @Before - ExternalResource#before() - @Test -...
Hello, I am using JUnit 4.7 and used the new Rules mechanism, with TempFolder. What I needed was to have a temporary folder where the CUT could create some...
hi! i have a problem with assertEquals. i use it several times in my tests but at one point it starts behaving strange. what i do: //a string String expected2...
Hi everyone! Here is a question regarding enabling and disabling testMethods. I am running several .class tests in my suite() and I would like to have some...
Hi, list. Been playing around a bit with JUnit 4.7's new interceptors (rules) feature and in some cases, turning a @Before method (and a base class) into a...
I've been playing a bit with Test Driven Development, and have read the book, but now I want to try it out, and am really not sure what to do next... My wife...
I'm looking at the new Rule annotation in JUnit4. It's pretty nice, but it doesn't seem to inherit. That is if I have a super class that has the @Rule, sub...
Hi, I only have an Anroid apk then want to create JUnit test case to test. How to create test case of JUnit project to test the it? Or can't use in only apk...
Any progress on generating a correct and complete javadoc for 4.7? As I noted in my email on Aug. 7, 2009, the javadoc in junit4.7.zip is not correct. David...
All, We are very happy to announce that last week, we secretly released JUnit 4.7: http://github.com/KentBeck/junit/downloads Release notes are linked here: ...
Purvi, There is no official certification offered by the developers. There certainly are training classes offered in unit testing and test-driven development,...
Hi - I am using JUnit 4.x version for testing all my core business classes, and some of them are exposed as webservices. I would like to test these webservices...
Hi, I always assumed that JUnitCore.runClasses(...) could also run classes annotated with @RunWith. Was this assumption wrong? It does not seem to work with...