In this first installment of Testing with state using GraphWalker, we’ll look at integration testing the persistence layer of a Spring application. So, our tests will target the database and the data repositories. Statefulness The database itself is inherently stateful. As a result, if we connect a data repository to an actual database, it will also show stateful behavior. For … Lees verder Testing with state using GraphWalker | Part 1 – Persistence
Used versions: GORM 6.1.9 Hibernate 5.1.5 Grails 3.3.10 This week I had to map an object on an existing database table with an existing primary key not named ‘id’ but ‘aniId’. By convention GORM is expecting such an ‘id’ property and if it is absent GORM inserts it for us which is very handy with new tables. But with an … Lees verder GORM map table without primary key
This post will demonstrate generating test data using junit-quickcheck. It will focus on practical examples, rather than the theory behind property based testing.
This is part 7 of the series called “Functional Java by Example”. The example I’m evolving in each part of the series is some kind of “feed handler” which processes documents. We’ve already dealt with exceptional situations before, but we’re going to take care of them, more ehm,…functionally — as data.
In this blog post, I will walk you through the process up starting support cases at Red Hat. Including examples of what we did to solve our case. However, these blog posts might still help you when starting support cases at other companies. Our case One of the cases we have started is a case regarding a bug in JBoss … Lees verder How to solve a support case at Red Hat with success
March 12th 2019 a new vendor neutral foundation was created: the CDF! CDF is founded by Cloudbees and Google. For now the project has Jenkins (including the ‘jenkins-x’ project), Spinnaker (Netflix) and Tekton (kubernetes / google) on board and many companies as founding members. It was announced as definitive at FOSDEM in februari. Some background on continuous delivery … Lees verder The CDF is here! Why a continuous delivery foundation?
So, you decided to setup your own Kubernetes cluster on some old pc or Raspberry Pi you’ve just got laying around. Great! Your own personal private Kubernetes cluster just for you to experiment with, just because you don’t want to use Minikube. The basics The first thing you do is search the internet for the documentation on how to install … Lees verder Your own private Kubernetes cluster at home
When I explained a piece of code to a colleague during a code review, I realized I had inadvertently implemented a readers-writer lock. So, I threw the code out, replacing it by the ReadWriteLock from java. This article is about that thrown out code. I updated the method names and comments to reflect the readers-writer lock as opposed to the … Lees verder Readers-writer lock using java 5’s condition variables
This is part 6 of the series called “Functional Java by Example”. The example I’m evolving in each part of the series is some kind of “feed handler” which processes documents. In previous part we tried to make our functions as pure possible by moving as much of the side-effects, such as IO, to the outside of the system. Now … Lees verder Functional Java by Example | Part 6 – Functions as Parameters
This is part 5 of the series called “Functional Java by Example”. In previous part we stopped mutating our documents and returned copies of the data. Now, we need to move some I/O away.