Alle Beiträge von Stephan Fuhrmann

How to Write a JUnit 5 Unit Test: Dos and Don’ts

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 weiterlesen

Network 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 weiterlesen

Your 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

Your favorite Java collection is slow! weiterlesen

Changing 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