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 weiterlesenMigrating WordPress to a new hosting provider
This is a summary for migrating a WordPress instance from one hosting provider to another. If you are familiar with IT topics it’s something that is feasible. If not, better ask an expert for assistance since a weak setup is posing a big security risk for your site.
Migrating WordPress to a new hosting provider weiterlesenNetwork Device Simulation for Cisco Nexus with QEMU/KVM
Introduction
In this article I want to show you how to start with a bare Cisco NX-OS QEMU image guest and configure it to be reachable via the network of the host system. In this approach I am going to use an ‘expect’ script that is going through the initial configuration dialogues of the console of NX-OS.
Network Device Simulation for Cisco Nexus with QEMU/KVM weiterlesenNetwork Device Simulation for Cisco Nexus with Vagrant
Introduction
This is a step-by-step instruction on how to get started with virtualization with Vagrant, VirtualBox and Cisco NX-OS images. This comes handy when developing network automation approaches and testing them in a test environment with no cost of real hardware.
Network Device Simulation for Cisco Nexus with Vagrant weiterlesenJava 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.
nfs4: Fix for the nobody nogroup problem
When using the network file system (NFS) , it’s possible to run into a problem that your files and directories get mapped to the user nobody. I’ll show you the background and explain to you how to deal with the problem.
nfs4: Fix for the nobody nogroup problem weiterlesenX11: Replacing numeric keypad key comma with more usable dot
The numeric keypad is a big help when typing long numers or entering mathematical formulas. In this article I’ll show you how to configure your X11 keymap to correctly map a key, in this case replace the keypad comma with the dot.
X11: Replacing numeric keypad key comma with more usable dot weiterlesenChanging the UUID of a hard disk image in VirtualBox
VirtualBox is a virtual machine software that can run a couple of operating systems. A virtual machine is usually using a disk image instead of a real hard disk. A common operation is copying disk images in a clone-like manner. Unfortunately copying images with the command line cp command won’t work: VirtualBox will tell you it already knows this disk images UUID.
Changing the UUID of a hard disk image in VirtualBox weiterlesen