Christian Stein

@sormuras@mastodon.cloud
560 Followers
210 Following
763 Posts

If you ever need to adapt a #JUnit3 TestSuite to run directly in #JUnit #Jupiter, it's actually possible with dynamic tests! 😎

Here's how I run the @⁠Inject TCK in the @SpringFramework.

https://github.com/spring-projects/spring-framework/blob/main/spring-context/src/test/java/org/springframework/context/annotation/jsr330/SpringAtInjectTckTests.java

Kudos to @marcphilipp for suggesting the dynamic test idea.

spring-framework/spring-context/src/test/java/org/springframework/context/annotation/jsr330/SpringAtInjectTckTests.java at main Β· spring-projects/spring-framework

Spring Framework. Contribute to spring-projects/spring-framework development by creating an account on GitHub.

GitHub

#JUnit 6.0.0-M1 is ready for testing!

✨ Require Java 17 and Kotlin 2.2
πŸŒ„ JSpecify nullability info
🚟 Kotlin suspend function support
πŸ›« Integrated custom JFR events
πŸš… FastCSV-backed Csv{File}Source
🧹 Remove deprecated APIs and behaviors

https://junit.org/junit5/docs/6.0.0-M1/release-notes/

JUnit Release Notes

#JUnit Logo Contest Update

Here are some of the top contenders.

Please let us know your thoughts.

And additional proposals are welcome!

https://github.com/junit-team/junit-framework/issues/4576

On behalf of the #Java DevRel Team at #Oracle, congratulations to the newest member of the #JavaChampions program: @marcphilipp
You don't need a lot of tooling for a quick sanity check if you expose only what you want to expose from a #Java package. Generate your #Javadoc and see what it sees and publishes. Its default inclusions are just spot on.
Au weia. Aber scheinbar haben wir gewonnen, wenn die Gegner von #opensource schon so vorgehen mΓΌssen... :-)

#JUnit 5.13.2 is released!

⚠️ Fix discovery issue detection for inner classes and abstract methods
🐞 Bug fixes and minor improvements

https://junit.org/junit5/docs/5.13.2/release-notes/

JUnit 5 Release Notes

So happy that @marcphilipp got accepted into the @JavaChampions program. Congratulations!

There are more people on the #JUnit core team that did so much of incredible value to the ecosystem, they literally walking the talk.

⚠️ It's official: the #junit5 GitHub repository is gone!

Well, actually... it's only been renamed to #junit-framework. 😎

Plus, everything should redirect fine. πŸ™ˆ

https://github.com/junit-team/junit-framework

GitHub - junit-team/junit-framework: βœ… The programmer-friendly testing framework for Java and the JVM

βœ… The programmer-friendly testing framework for Java and the JVM - junit-team/junit-framework

GitHub

To avoid confusion, I just renamed my fork...

from: https://github.com/sbrannen/junit5

to: https://github.com/sbrannen/junit-framework

You may want to do the same! 😎

https://mastodon.online/@sbrannen/114732403031946289

Γ—
You don't need a lot of tooling for a quick sanity check if you expose only what you want to expose from a #Java package. Generate your #Javadoc and see what it sees and publishes. Its default inclusions are just spot on.

Also, if you ever wondered why #SpringJavaFormat / #Checkstyle ask the first sentence of a type-level JavaDoc comment to end with a period, the screenshot shows why :)

It will become the value of `Description` in the overview.

@rotnroll666 which is not specific to either springsomething or checkstyle, but just the case since javadoc was released with jdk in the 1990s.

There is even more, like that third person mood that makes the <subject> Does this and that. Which was supposed to be read easier. I still consider Sun's style guide pretty useful and timeless.

@rotnroll666 and here I thought I am the only one. I use this method too. Better than what IDEs offer. Best visual indicator of what is visible to others.
@raupach exactly that. Quick visual easy to grasp.