Top "Junit3" questions

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

Why is JUnit 4 on Android not working?

as the documentation of Android says, "Note that the Android testing API supports JUnit 3 code style, but not JUnit 4." (Testing …

java android junit4 dalvik junit3
Java: Exception testing with Junit 3

I would like to write a test for IndexOutOfBoundsException. Keep in mind that we are supposed to use JUnit 3. My …

java exception junit error-handling junit3
How to test spring controller method using Junit

Hi I'm new to Spring and to Junit as well. I have a method in my controller. I want to …

spring spring-mvc junit junit4 junit3
How to run Junit TestSuites from gradle?

I am trying to migrate from Ant build to Gradle in my project. There are a bunch of test cases (…

java gradle test-suite junit3
Maven 2 Not Running Junit 4 Tests

I'm having an issue getting surefire to run Junit4 tests. This same issue was reported in https://stackoverflow.com/questions/2021771?…

java maven-2 junit4 junit3
Mock Date object using Mockito

A method of MyService class returns java.util.Date object and MyManager class is calling that method of MyService class. …

java unit-testing mocking mockito junit3
How can I have the Ant JUnit task run all tests and then stop the rest of the build if any test has failed

I'm running JUnit via Ant using a target something like this: <target name="junit" depends="compile"> <mkdir …

ant junit junit3
Unable to run simple JUnit TestCase on old version of JUnit

I'm attempting to run a simple JUnit test case on version 3.7 of JUnit (I'm not able to upgrade this to …

java junit intellij-idea junit3
Junit protected method

I'm wondering about a nice way to deal with a protected method in Junit. Assuming I want to test a …

java junit junit4 junit3
Getting a TimerTask to run when using JUnit

I have a function that looks like this: private Timer timer = new Timer(); private void doSomething() { timer.schedule(new TimerTask() { …

java junit timertask junit3