juergencodes commented on issue #834: URL: https://github.com/apache/maven-surefire/issues/834#issuecomment-2829870882
I forgot to mention that using a source or not isn't just something I was doing for fun. If you change the `assertNull` to `assertNotNull`, everythings works fine even with surefire 3.5.3 ``` [INFO] Running SurefireReproducerTest Running 'withSource' Running 'noSource' [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.048 s <<< FAILURE! -- in SurefireReproducerTest [ERROR] SurefireReproducerTest.noSource()[1] -- Time elapsed: 0.004 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: not <null> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertNotNull.failNull(AssertNotNull.java:49) at org.junit.jupiter.api.AssertNotNull.assertNotNull(AssertNotNull.java:35) at org.junit.jupiter.api.AssertNotNull.assertNotNull(AssertNotNull.java:30) at org.junit.jupiter.api.Assertions.assertNotNull(Assertions.java:304) at SurefireReproducerTest.lambda$test$0(SurefireReproducerTest.java:20) at java.base/java.util.Optional.ifPresent(Optional.java:178) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] SurefireReproducerTest.lambda$test$0:20 expected: not <null> [INFO] [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 ``` I.e. the problem ONLY happens if one provides a source. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org