junit4
junit4 copied to clipboard
A programmer-oriented testing framework for Java.
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...
We need to decide if we need replacement APIs for the methods that take Hamcrest matchers as parameters. The discussion has started in #1150.
@npryce has nicely summed up the reasons to do this in his blog: http://www.natpryce.com/articles/000806.html
For example that allows to specified leading zero by using {index,number,0000}
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...
```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) {...
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...