Hello everybody, please let me know, whether it is possible to define more Runner implementations in one JUnit class. In my case I would like to use both...
I downloaded junit4.8.1.zip file from http://sourceforge.net/projects/junit/files/junit/, and extracted all file of the root directory C:. I am using Eclipse...
Some of the annotations are pretty well understood and map directly to JUnit 3 concepts, so I'll just keep them here for completeness: * @Test - run this...
Just to see how things map, I attempted to do something like this: @RunWith(Theories.class) public class TrackableTestCase { @DataPoints public static Class[]...
Hi !, In JDK 1.4.0 Beta 2 verion, assert is a keyword. Has any one looked into this ? Is there any proposed changes for the JUnit assert method ? How will a...
Hey all, I am developing some tests with JUnit 4.7. It includes a bunch of standard stuff that I refactored out into rules and runners and 2 base test...
I've got a challenge that I'm not sure how to approach with JUnit 4. I've sort of hacked something similar in JUnit3, but there were some inelegant things...
After over 10 years of using JUnit, it has only just struck me that test methods must return void, but why? I've just come across an example where a particular...
I've done a search on this forum about this issue and I followed the trail to github.com - issues 24 and 44. It looks like this is still awaiting an...
I am new to java and junit - 3 weeks. I have created an XML message validation utility using NetBeans6.7. However, I now want to package this so that users...
 Hi, I am trying to use the new experimental Categories Feature. Unfortunately it doesn't seem to be compatible with Parameterized Tests. I run the following...
I've discovered that my ClassLoaderSuite that loads each test class in its own ClassLoader also needs to set the thread's context class loader before running...
Hi, I have submitted this issue in the past (http://github.com/KentBeck/junit/issues#issue/41) but now it has become more relevant (and perhaps a more...
I created a Suite that allows me to run tests in a separate class loader. I use it like this: @RunWith(ClassLoaderSuite.class) @SuiteClasses({ MyTest1.class,...
I'm excited about the new Categories feature. I have one question though that I haven't been able to work out: Must all of the specific tests be enumerated...
All, There are many things I love about github, but in the past, I have found it someone bewildering to keep up with the various ways that maintenance work can...
Hi All - I have a theory enabled test case, with few data points. When my theory method is executed with by the Theories runner, for few data points my theory...
I've inherited a project using a mix of JUnit 3.8.1 and 4.4. The modules written for a Java 1.4 deployment is tested with 3.8.1, the modules that needs a 1.5...
In my code, I would need to do something like if (CodeISNotRunningInJUnit()) { //do some operations that must not be executed if tests are running } reason is...
I am trying to create a per-class aggregation of the output from the junitcore run-listener, as is done by default in for instance maven surefire-plugin. I...
I have a scenario to test where in I need to make sure that tests are executed in particular order... How can I achieve this? Are the test cases added with...
I'm trying to test some behavior using Hibernate/Spring transactional support, but I'm running into a particular snag. By default, the transaction manager is...
Hello: I'm trying to download junit code using SVN. I only get a empty folder whithout any data and a message saying that revision 0 is downloaded. I'm using...
I have an abstract base class that defines a static @BeforeClass setUp method. When this class is extended, the static setUp method is not called. The javadoc...
Hi everyone, as we have it currently, we can place a Rule in a test, and that rule will be activated for that test. To have the rule working in several tests,...
I have an Ant build script that uses the "junit" task. It would be convenient if I could send "parameters" to certain unit test classes, from values...
Hello everyone, we are undertaking a study on how developers contribute to both open and closed source software projects. Please help this research by taking...
Hi there, I have a test suite defined as follows: @RunWith(MainTestSuite.class)@SuiteClasses({ ATest.class, BTest.class, CTest.class})public final class...
Hi. I have been trying to use TestNG for a while, but found the transition a bit too hard :-) Categories in junit is looking promising, but there is two things...