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

When calling `assertSame` for two different instances of identical objects the failure message will be quite confusing: "expected same: was not:". See https://github.com/junit-team/junit4/blob/8c9e81daf38efa8b4af9ba5c55fe83765ac434d6/src/main/java/org/junit/Assert.java#L829 I think the clarity could be improved...

Trying to execute remote tests using JUnit 4.12 with Groovy&co steroids from IDEA: ![image](https://user-images.githubusercontent.com/341600/51183675-3ef5b680-18d2-11e9-8749-559fb053d759.png) ```java java.lang.Exception: No tests found matching method name filter from org.junit.runner.Request$1@3af039ed at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at...

Representing durations as `long`s can easily lead to unit mismatch problems. Representing durations as `long, TimeUnit` pairs can require plumbing 2 values through multiple layers (and can suffer from unit...

I have parameters in both the base and derived test classes. So I want the tests in derived class to run for the cartesian product of those. Sample code -...

parameterized

## Status Quo The https://junit.org/junit4/javadoc/latest/ folder currently contains documentation for `JUnit 4.13-beta-1`. The net result is that projects that link to https://junit.org/junit4/javadoc/latest/ in order to generate links to external documentation...

It would be helpful if assumption violations would be reflected on the text UI. For this test class with three test methods: ```java package org.gerritcon.mv2016; import static org.junit.Assert.assertEquals; import static...

By default junit executes test in default order that is based on method name hash code. In java hashcodes of string doesn't change between executions, so the order is random,...

A word in advance: I never have written such an extensive request in such a major project before, so please bear with me. :) My goal was to provide a...

feature
rules

When using the `Timeout` rule, it would sometimes be convenient to be able to get how much time is remaining in the test. That would allow code that calls `Future.get(long,...

rules

Hello, I'd like to share report on API changes and backward compatibility for the JUnit library: https://abi-laboratory.pro/java/tracker/timeline/junit/ Report for JUnit5: https://abi-laboratory.pro/java/tracker/timeline/junit-jupiter-api/ BC — binary compatibility SC — source compatibility The...