Top "Junit3" questions

JUnit 3 is version 3 of the popular JUnit testing framework for Java

Maven 3 and JUnit 4 compilation problem: package org.junit does not exist

I am trying to build a simple Java project with Maven. In my pom-file I declare JUnit 4.8.2 as the only …

maven junit junit4 maven-3 junit3
setUp/tearDown (@Before/@After) why we need them in JUnit?

I believe that we are all know that setUp (@Before) will execute before any test method and tearDown(@After) will …

java junit junit4 junit3
JUnit Exception Testing

Edit: Not JUnit 4 available at this time. Hi there, I have a question about "smart" exception testing with JUnit. At …

java unit-testing exception junit junit3
Junit assert OR condition in my test case

In my test case, I get an integer value: int val = getXXX(); Then, I would like to check if val …

java unit-testing junit junit4 junit3
JUnit test case to check if file was created

I have created a simple program that wil create the dat file through buffered writer and will write some data …

unit-testing testing junit3
Specifying an order to junit 4 tests at the Method level (not class level)

I know this is bad practice, but it needs to be done, or I'll need to switch to testng. Is …

java unit-testing junit4 junit3
How to provide data files for android unit tests

I am developing software that loads information from XML files using Android's implementation of java.xml.parsers.DocumentBuilder and DocumentBuilderFactory. …

android xml unit-testing junit3
JUnit extend base class and have tests in that class being run

I am using JUnit 3 and have a situation where often I have to test that an object is created correctly. …

java unit-testing junit junit3
JUnit3 and Junit4 XML Reports with Maven

I am trying to figure out how to use the supposed reporting capabilities of JUnit (3 and 4) in conjunction with Maven, …

java maven-2 junit4 junit3
The differences between JUnit 3 and JUnit 4

Could someone describe in a few words what the main differences between JUnit 3 and 4 are?

junit junit4 junit3