JUnit 5 Basics: @Test, Lifecycle, Assertions, Assumptions, And More
A guide to JUnit 5 basics covering @Test annotation, test lifecycle, assertions, assumptions, and other core features for Java developers.
Nicolai Parlog (nipafx) is a Java Developer Advocate at Oracle who shares deep insights on Java through blogs, talks, books, videos, and open-source projects, helping developers learn and grow.
297 articles from this blog
A guide to JUnit 5 basics covering @Test annotation, test lifecycle, assertions, assumptions, and other core features for Java developers.
A guide to writing parameterized tests in JUnit 5, covering setup, dependencies, and basic usage with examples.
A guide to setting up JUnit 5 in popular IDEs (IntelliJ, Eclipse) and build tools (Maven, Gradle), including dependencies and test execution.
Explores using Java's 'var' keyword to simulate traits and intersection types, discussing its versatility and limitations.
Explores Java's 'var' type inference for anonymous classes, enabling ad-hoc fields and methods, but warns against production use.
Explores using Java's 'var' keyword to create and work with intersection types, enabling variables to combine multiple interfaces.
A guide to creating Multi-release JARs (MR-JARs) in Java to package code for multiple Java versions in a single artifact.
A hands-on tutorial exploring Java 9's key features, including language changes, new APIs, the module system, and migration tips.
Essential guide for using Maven with Java 9+, covering version requirements, configuration, and multi-JDK builds.
Explores the new 'var' keyword for local-variable type inference in Java 10, covering its usage, limitations, and impact on code readability.
Explores solutions for using JSR 305 annotations like @Nonnull with Java 9's module system, addressing split package conflicts.
A hands-on tutorial on using the Java module system with code-first examples, from Hello World to modularizing an application.
A guide to using Java 9+'s unified logging architecture with the -Xlog option to configure JVM internal messages.
An overview of Java 9 features and resources, including a demo repository showcasing Java 9-16 capabilities and community expert insights.
Explores five key Java command line options (--add-exports, --add-opens, etc.) to overcome migration challenges with the Java module system.
A guide to planning and executing a Java 9 update, covering initial assessment, identifying migration challenges, and prioritizing fixes.
A technical talk on migrating Java 8 applications to Java 9/11, covering common hurdles like module system and dependency issues.
A guide to overcoming the seven most common challenges when migrating a Java 8 codebase to Java 9, focusing on compilation and runtime issues.
A tutorial on using JDeps, the Java Dependency Analysis Tool, to examine and analyze project dependencies from the command line.
A comprehensive collection of resources for learning about Java 9, including talks, articles, books, and tutorials on its features and migration.