<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>JUnit - Tag - My Notes</title><link>https://blog.emecas.net/tags/junit/</link><description>JUnit - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 15 Mar 2024 14:33:05 +0000</lastBuildDate><atom:link href="https://blog.emecas.net/tags/junit/" rel="self" type="application/rss+xml"/><item><title>IntelliJ IDEA a Conf 2024: Mastering Java Testing With JUnit, Mockito, and Assert in IntelliJ IDEA</title><link>https://blog.emecas.net/posts/2024-03-15-intellij-idea-a-conf-2024-mastering-java-testing-with-junit/</link><pubDate>Fri, 15 Mar 2024 14:33:05 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2024-03-15-intellij-idea-a-conf-2024-mastering-java-testing-with-junit/</guid><description><![CDATA[<p>IntelliJ IDEA a Conf 2024: Mastering Java Testing With JUnit, Mockito, and Assert in IntelliJ IDEA<br>
<a href="https://youtube.com/shorts/Fyg0SI7jwWc?feature=shared" target="_blank" rel="noopener noreffer ">https://youtube.com/shorts/Fyg0SI7jwWc?feature=shared</a><span class="embed embed-video" data-yt="Fyg0SI7jwWc"><button type="button" class="embed-play">&#x25BA; Play here</button> <span class="embed-title">Mastering Java Testing With JUnit, Mockito, and AssertJ in IntelliJ IDEA</span>
            <span class="embed-meta"> · IntelliJ IDEA, a JetBrains IDE on YouTube · copied 2026-11-20</span>
        </span></p>
<p>To Do: Look/wait for full recording</p>
<p>Issue #147 in emecas/commitit, open, opened on 2024-03-15.<br>
<a href="https://github.com/emecas/commitit/issues/147" target="_blank" rel="noopener noreffer ">https://github.com/emecas/commitit/issues/147</a></p>
<hr>
<p><em>Source: issue <a href="https://github.com/emecas/commitit/issues/147" target="_blank" rel="noopener noreffer ">#147</a> in emecas/commitit, opened on 2024-03-15.</em></p>]]></description></item><item><title>DbUnit</title><link>https://blog.emecas.net/posts/2020-06-10-dbunit/</link><pubDate>Wed, 10 Jun 2020 18:48:29 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-06-10-dbunit/</guid><description><![CDATA[<p>DbUnit<br>
<a href="http://www.dbunit.org/" target="_blank" rel="noopener noreffer ">http://www.dbunit.org/</a><br>
DbUnit is a JUnit extension (also usable with Ant) targeted at database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.</p>
<p>DbUnit has the ability to export and import your database data to and from XML datasets. Since version 2.0, DbUnit can also work with very large datasets when used in streaming mode. DbUnit can also help you to verify that your database data match an expected set of values.</p>]]></description></item><item><title>Testcontainers</title><link>https://blog.emecas.net/posts/2019-03-26-testcontainers/</link><pubDate>Tue, 26 Mar 2019 20:43:00 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2019-03-26-testcontainers/</guid><description><![CDATA[<p>Testcontainers<br>
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.<br>
<a href="https://www.testcontainers.org/" target="_blank" rel="noopener noreffer ">https://www.testcontainers.org/</a><br>
Testcontainers make the following kinds of tests easier:</p>
<p>Data access layer integration tests: use a containerized instance of a MySQL, PostgreSQL or Oracle database to test your data access layer code for complete compatibility, but without requiring complex setup on developers&rsquo; machines and safe in the knowledge that your tests will always start with a known DB state. Any other database type that can be containerized can also be used.<br>
Application integration tests: for running your application in a short-lived test mode with dependencies, such as databases, message queues or web servers.<br>
UI/Acceptance tests: use containerized web browsers, compatible with Selenium, for conducting automated UI tests. Each test can get a fresh instance of the browser, with no browser state, plugin variations or automated browser upgrades to worry about. And you get a video recording of each test session, or just each session where tests failed.</p>]]></description></item><item><title>kousen/junit5_workshop</title><link>https://blog.emecas.net/posts/2018-06-19-kousen-junit5-workshop/</link><pubDate>Tue, 19 Jun 2018 15:02:49 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2018-06-19-kousen-junit5-workshop/</guid><description><![CDATA[<p>kousen/junit5_workshop<br>
Demos and tests for JUnit 5 workshop<br>
Java repository by kousen, created in 2018, with 129 stars and 125 forks. License: MIT. Starred on 2018-06-19.<br>
<a href="https://github.com/kousen/junit5_workshop" target="_blank" rel="noopener noreffer ">https://github.com/kousen/junit5_workshop</a></p>
<hr>
<p><em>Source: starred on GitHub on 2018-06-19: <a href="https://github.com/kousen/junit5_workshop" target="_blank" rel="noopener noreffer ">kousen/junit5_workshop</a>.</em></p>]]></description></item><item><title>JGiven Behavior-Driven Development in Plain Java</title><link>https://blog.emecas.net/posts/2017-12-14-jgiven-behavior-driven-development-in-plain-java/</link><pubDate>Thu, 14 Dec 2017 14:51:44 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2017-12-14-jgiven-behavior-driven-development-in-plain-java/</guid><description><![CDATA[<p>JGiven Behavior-Driven Development in Plain Java<br>
<a href="http://jgiven.org/" target="_blank" rel="noopener noreffer ">http://jgiven.org/</a><br>
JGiven is a developer-friendly and pragmatic BDD tool for Java. Developers write scenarios in plain Java using a fluent, domain-specific API, JGiven generates reports that are readable by domain experts.<br>
<a href="https://github.com/TNG/JGiven" target="_blank" rel="noopener noreffer ">https://github.com/TNG/JGiven</a> <a class="star-note-link" href="/posts/2017-12-12-tng-jgiven/" title="TNG/JGiven: my star note">★&nbsp;star&nbsp;note</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/164f6600a97a15a40725e65637f8961abc6d53de" target="_blank" rel="noopener noreffer "><code>164f660</code></a> in My-Notes.</em></p>]]></description></item><item><title>System Rules - JUnit Testing for System.exit</title><link>https://blog.emecas.net/posts/2015-07-16-system-rules-junit-testing-for-system-exit/</link><pubDate>Thu, 16 Jul 2015 14:11:18 +0200</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2015-07-16-system-rules-junit-testing-for-system-exit/</guid><description><![CDATA[<p>System Rules<br>
A collection of JUnit rules for testing code that uses java.lang.System.<br>
Command-Line Applications - System.exit - System Properties - Security Managers<br>
<a href="http://stefanbirkner.github.io/system-rules/" target="_blank" rel="noopener noreffer ">http://stefanbirkner.github.io/system-rules/</a><br>
REF: <a href="http://stackoverflow.com/a/309427/833336" target="_blank" rel="noopener noreffer ">http://stackoverflow.com/a/309427/833336</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/a857a61c61958574a71d52e96b51fe414925ce1d" target="_blank" rel="noopener noreffer "><code>a857a61</code></a> in My-Notes.</em></p>]]></description></item><item><title>Code coverage</title><link>https://blog.emecas.net/posts/2013-03-12-code-coverage/</link><pubDate>Tue, 12 Mar 2013 10:25:16 +0100</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2013-03-12-code-coverage/</guid><description><![CDATA[<p>Java Code Coverage for Eclipse<br>
<a href="http://www.eclemma.org/" target="_blank" rel="noopener noreffer ">http://www.eclemma.org/</a></p>
<p>EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License. It brings code coverage analysis directly into the Eclipse workbench:</p>
<p>Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.<br>
Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.<br>
Non-invasive: EclEmma does not require modifying your projects or performing any other setup.</p>]]></description></item></channel></rss>