junit4 icon indicating copy to clipboard operation
junit4 copied to clipboard

A programmer-oriented testing framework for Java.

Results 111 junit4 issues
Sort by recently updated
recently updated
newest added

Hi. I have made my own suite "MySuite.class", and I'm trying to run all the tests from the project using that suite. I have declared AllTests.class as "@RunWith(ClasspathSuite.class) public class...

Hello, we're developing an automated system that detects inconsistent variable names in a large software project. Our system checks if each variable name is consistent with other variables in the...

I'd like to propose a change that I think would make the `assertEquals` methods easier to work with - apologies if I've missed something. When a test fails in Eclipse...

When running the following test with `junitLibVersion = "4.12"`: ```java import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import java.util.Arrays; import static org.junit.Assert.assertEquals; @RunWith(Parameterized.class) public class TestNull { private final...

parameterized

We need to decide if we need replacement APIs for the methods that take Hamcrest matchers as parameters. The discussion has started in #1150.

feature
hamcrest

@npryce has nicely summed up the reasons to do this in his blog: http://www.natpryce.com/articles/000806.html

hamcrest

For example that allows to specified leading zero by using {index,number,0000}

parameterized
abandoned
changes requested

In JUnitCore the fireTestRunFinished should be placed in finally block. This call is placed after `runner.run(notifier);`. The notifier method `fireTestRunFinished()` cannot be called after JUnit threw StoppedByUserException. The begin and...

bug
up-for-grabs

```java @RunWith(Theories.class) public class NonExistentTheory { @DataPoints("foo") public static final ImmutableSet FOOS = ImmutableSet.of(MetaSyntacticVariable.FOO); @Theory public void doWithTheFoo(@FromDataPoints("bar") MetaSyntacticVariable whatever) { System.err.println(whatever); } @Theory public void doWithTheBoolean(@FromDataPoints("bar") boolean whatever) {...

bug
theories

This PR attempts to address some potentially unexpected behaviour of assertSame() when passed primitive expected and actual arguments. Currently: 1. assertSame(123, 123) passes because the although the primitive int arguments...