JUnit 5, the latest version of the popular Java testing framework, introduces several powerful features and improvements over its predecessors. Writing effective unit tests in JUnit 5 can significantly enhance the quality and maintainability of your codebase. This article explores the essential dos and don’ts of writing JUnit 5 unit tests, providing practical examples to illustrate best practices.
How to Write a JUnit 5 Unit Test: Dos and Don’ts weiterlesenSchlagwort-Archive: java
Java command line parsing libraries compared
Java command line parsing libraries compared
This is a small comparison of command line parsing libraries in Java. It is not meant to be complete, but shall help people to find the best library for their needs.
Java command line parsing libraries compared weiterlesenYour favorite Java collection is slow!
A little history
Java collection framework is an object oriented framework for dealing with data vectors. It started with JDK 1.2 and is today is very popular. There are well-known Collection classes like
- ArrayList,
- LinkedList,
- TreeSet,
- HashSet,
- LinkedHashSet,
- ArrayDeque, a double-ended queue
- Vector which is older and not popular anymore because of the synchronisation penalty you’re paying for it.