So your JUnit 5 Jupiter Tests are not running in Maven ? no panic! This tutorial will provide all the checks you need to apply to your Maven project to unlock your JUnit 5 test execution.
Various Stuff
Just: a tool to store and execute your project commands
“Just” (or “Justfile”) is a handy command-line tool that simplifies the execution of project-specific commands tasks. In this tutorial, we’ll explore why and how to use “Just” to enhance your day-by-day command line tasks.
How to fix CVE-2023-29017
The CVE-2023-29017 is about a flaw in how VM2 handles errors asynchronously within a sandbox environment. If not properly handled, such errors might allow an attacker to escape the restrictions of the sandbox and execute code with greater privileges, potentially compromising the host system’s security. This article discusses how to solve the issue.
Getting Started with Testcontainers for Java
Introduction In modern software development, it is crucial to write robust and reliable tests to ensure the quality of your applications. One essential aspect of testing is dealing with dependencies, such as databases or external services. Testcontainers is an excellent Java library that provides lightweight, disposable containers for running dependencies during tests. In this tutorial, … Read more
JUnit 5 : Step-by-step Tutorial
JUnit 5 is a powerful testing framework for Java developers, allowing you to write and run repeatable, automated tests for your code. With its clear and expressive syntax, JUnit 5 makes it easy to write tests for a wide range of scenarios and use cases, from simple unit tests to complex integration tests. In this beginner’s tutorial, we’ll cover the basics of JUnit 5 and walk through the steps of writing and running your first test.
How to configure Gradle to use Java 17
Gradle is an open-source build automation tool and project management system that is widely used for building, testing, and deploying software projects. In this tutorial we will learn how to configure it to use Java 17 and how to solve common issues with it.
Debugging RestAssured Tests
When you run REST Assured tests, you may encounter errors such as failing assertions, incorrect responses, or unexpected behaviors. This article explains some techniques that can help you identify the root cause of these errors and fix them quickly. By debugging your tests, you can see what’s happening under the hood and find the issues that are causing the test failures.
JUnit 5 Cheatsheet (2023)
This article contains a JUnit 5 Cheatsheet which you can use as handy reference to build your JUnit 5 Jupiter Tests in Java.
JUnit Testing Best Practices: Verifying No Exceptions in Your Java Code
Introduction When writing tests in Java, it’s important to verify that a method or code block behaves as expected. One of the most common things to check is whether an exception is thrown during the execution of a test. However, sometimes we also want to verify that no exception is thrown. This can be particularly … Read more
How to use Mockito to supercharge your Java Testing
Mockito is a powerful and easy-to-use mocking framework for Java applications. With Mockito, you can easily create mock objects that simulate the behavior of real objects in your application, without actually invoking their methods. We will show at first how to plug Mockito in JUnit Tests. Then, we will integrate Mockito in Quarkus Tests.