<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Junit on JAVAPRO International</title><link>https://javapro-en.svenruppert.com/tags/junit/</link><description>Recent content in Junit on JAVAPRO International</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 10 Sep 2025 07:00:02 +0000</lastBuildDate><atom:link href="https://javapro-en.svenruppert.com/tags/junit/index.xml" rel="self" type="application/rss+xml"/><item><title>Mastering JUnit: Navigating between old and new versions for a smarter test strategy</title><link>https://javapro-en.svenruppert.com/mastering-junit-navigating-between-old-and-new-versions-for-a-smarter-test-strategy/</link><pubDate>Wed, 10 Sep 2025 07:00:02 +0000</pubDate><guid>https://javapro-en.svenruppert.com/mastering-junit-navigating-between-old-and-new-versions-for-a-smarter-test-strategy/</guid><description>&lt;p&gt;After the JUnit 5 was released, a lot of developers just added this awesome new library in their projects, because unlike others versions, this new version, is not necessary migrate from JUnit 4 to 5, you just need include the new library in your project, and with all the engine of JUnit 5 you can do your new tests using JUnit 5, and the older one with JUnit 4 or 3,  will keep running without problem. &lt;/p&gt;</description></item><item><title>Testing Done Right!</title><link>https://javapro-en.svenruppert.com/testing-done-right/</link><pubDate>Thu, 28 Aug 2025 07:00:00 +0000</pubDate><guid>https://javapro-en.svenruppert.com/testing-done-right/</guid><description>&lt;p&gt;Oh no! Not another article about testing! You can find a lot of publications about automated testing in software development, but there is a good reason for it. Testing your code is one of the most important aspects in software development!&lt;/p&gt;
&lt;p&gt;I’m not going to write yet another article about how you should write your tests. I’m also not covering the details of various types of tests. I will elaborate on some pitfalls you should be aware of when writing tests and how to solve them. This is not a scientific approach; it is just my opinion. What&amp;rsquo;s covered in this article? Let&amp;rsquo;s start with discussing why testing is so important in software development. Next, I’ll elaborate on some risks and how we can avoid them. I will also dive into sociable testing and test data generation.&lt;/p&gt;</description></item><item><title>JUnit 5: Eight Years of Innovation – Many Java Developers Are Falling Behind</title><link>https://javapro-en.svenruppert.com/junit-5-eight-years-of-innovation-many-java-developers-are-falling-behind/</link><pubDate>Mon, 28 Apr 2025 12:23:46 +0000</pubDate><guid>https://javapro-en.svenruppert.com/junit-5-eight-years-of-innovation-many-java-developers-are-falling-behind/</guid><description>&lt;p&gt;In many projects, JUnit is still used the way it was years ago — without taking advantage of the relevant innovations introduced in recent releases. Yet JUnit 5 has evolved significantly since its initial release: over eight years and twelve major updates, it has become a powerful, flexible, and extensible testing platform.&lt;/p&gt;
&lt;h2 id="the-junit-5-revolution-first-hand-insights"&gt;The JUnit 5 Revolution: First-Hand Insights&lt;/h2&gt;
&lt;p&gt;At JCON EUROPE 2025, developers will have the opportunity to not only discover the latest features of JUnit 5 but also to apply them directly. In the two-hour hands-on session &lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;a href="https://schedule.jcon.one/session/837895"&gt;Catching up with JUnit 5&lt;/a&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;, two key members of the JUnit team will guide participants through the most important developments.&lt;/p&gt;</description></item><item><title>Are AI Coding tools worth it - RESULTS</title><link>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-results/</link><pubDate>Wed, 30 Oct 2024 12:32:45 +0000</pubDate><guid>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-results/</guid><description>&lt;h5 id="background"&gt;Background&lt;/h5&gt;
&lt;p&gt;In &lt;a href="https://javapro.io/2024/10/17/are-ai-coding-tools-worth-it-part-1/"&gt;Part 1&lt;/a&gt;&lt;a href="https://javapro.io/2024/10/17/are-ai-coding-tools-worth-it-part-1/"&gt;,&lt;/a&gt; I examined the value of AI tools for developers, especially those that help them create or understand code. The tools selected are all free to use and a mix of general-purpose ones and those that declare they are specifically for coding purposes.&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://javapro.io/2024/10/23/are-ai-coding-tools-worth-it-part-2/"&gt;Part 2&lt;/a&gt;, I examined these tools&amp;rsquo; ability to find bugs and weaknesses. The results were spotty and not particularly useful or time-saving.&lt;/p&gt;
&lt;p&gt;In this part, we&amp;rsquo;ll look at the results from asking these tools to create JUnit tests for the code and decide who wins (and why).&lt;/p&gt;</description></item><item><title>Are AI Coding tools worth it - Part 2</title><link>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-part-2/</link><pubDate>Wed, 23 Oct 2024 16:04:46 +0000</pubDate><guid>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-part-2/</guid><description>&lt;p&gt;In &lt;a href="https://javapro.io/2024/10/17/are-ai-coding-tools-worth-it-part-1/"&gt;Part 1&lt;/a&gt;&lt;a href="https://javapro.io/2024/10/17/are-ai-coding-tools-worth-it-part-1/"&gt;,&lt;/a&gt; I started to examine the value of AI tools for developers, especially those that help them create or understand code. The tools selected are all free to use and are a mix of general-purpose ones and those that declare they are specifically for coding purposes&lt;/p&gt;
&lt;h6 id="tools-being-evaluated"&gt;Tools being evaluated&lt;/h6&gt;
&lt;p&gt;1: ChatGPT  &lt;a href="https://chatgpt.com/"&gt;https://chatgpt.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2: Claude &lt;a href="https://claude.ai/"&gt;https://claude.ai/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3: Amazon Q Developer  &lt;a href="https://aws.amazon.com/q/developer/"&gt;https://aws.amazon.com/q/developer/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4: Codeium &lt;a href="https://codeium.com/"&gt;https://codeium.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;5: JetBrains AI Assistant &lt;a href="https://www.jetbrains.com/ai/"&gt;https://www.jetbrains.com/ai/&lt;/a&gt;&lt;/p&gt;
&lt;h6 id="i-asked-each-tool-three-questions"&gt;&lt;strong&gt;I asked each tool three questions&lt;/strong&gt;&lt;/h6&gt;
&lt;ol&gt;
&lt;li&gt;“Generate the main Javadoc to describe this class.”&lt;/li&gt;
&lt;li&gt;“Assess the class for bugs and coding weaknesses and provide corrections or guidance.”&lt;/li&gt;
&lt;li&gt;” Generate Junit test cases to provide around 90% code coverage -especially for edge conditions etc.”&lt;/li&gt;
&lt;/ol&gt;
&lt;h6 id="results-so-far"&gt;Results so FAR&lt;/h6&gt;
&lt;p&gt;In &lt;a href="https://javapro.io/2024/10/17/are-ai-coding-tools-worth-it-part-1/"&gt;Part 1,&lt;/a&gt; we saw that they could all generate Javadoc, but none could do it particularly well. ChatGPT came off best as providing the most comprehensive response, but all the tools were prone to hallucinations that made the result misleading.&lt;/p&gt;</description></item><item><title>Are AI coding tools worth it? - part 1</title><link>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-part-1/</link><pubDate>Thu, 17 Oct 2024 10:00:00 +0000</pubDate><guid>https://javapro-en.svenruppert.com/are-ai-coding-tools-worth-it-part-1/</guid><description>&lt;p&gt;This is the start of a few posts about AI coding tools. This one sets the scene and gives a taste of what I found. In later posts I&amp;rsquo;ll show more of what I got from using them &lt;em&gt;as is.&lt;/em&gt; , explore what the sweet spots might be and end with a harder look at getting value out of them. If you want to skip to the end go &lt;a href="https://javapro.io/2024/11/07/1-billion-record-challenge-ai-style/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="a-long-time-ago-in-a-company-far-far-away"&gt;&lt;strong&gt;A long time ago, in a company far, far away…&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt; In the very early 90&amp;rsquo;s I had the, well, honour is not quite the word I want, the experience may be, to use a prototype of one of the first viable commercial speech-to-text and speech-to-control tools.  I used it at work; I used it at home. It was a disaster in all ways.  In the first go-around, the training for learning your voice was arduous, literally painful, and demanding. In the second prototype, it would often pick up the sound of the hard disk on the computer and interpret it as text, to much hilarity for all. &lt;/p&gt;</description></item></channel></rss>