spring-boot with flyway and how to get your tests working

spring-boot with flyway and how to get your tests working published on No Comments on spring-boot with flyway and how to get your tests working

Problem You have a spring boot application with flyway migration scripts for a MySQL database. Now your tests are failing because you don’t have the database available during unit testing and flyway is complaining. Solution Use an in memory H2 database in MySql mode. How Create a file called flyway_init.sql in src/test/resources with the following… Continue reading spring-boot with flyway and how to get your tests working

Integration testing

Integration testing published on No Comments on Integration testing

For my current work gig I’m doing some Prove Of Concepts (POC) around testing and testing frameworks.

I’ve looked at a couple of tools and will tell something of my experiences.
I was actually searching for an Integrated Test Environment for all my needs but I haven’t found it yet.

Please tell me if you do know of some.

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper published on 2 Comments on java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

Problem You just installed GlassFish 4.1.1 and deployed your java jax-rs application to it and it fails with the above mentioned error. Solution Well as far as I found out it has not yet officially been fixed by Oracle. A solution has been described there and I can confirm that for me it worked. The… Continue reading java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.persistence.jaxb.BeanValidationHelper

SystemTray icon on Mac OSX problem

SystemTray icon on Mac OSX problem published on No Comments on SystemTray icon on Mac OSX problem

Problem I want to have an icon in the SystemTray of Mac in order to sync some calendar stuff. Solution

Extra information I came to this solution via this code snippet Before finding this snippet I have tried a variety of options, namely: ScalaFx, JavaFx, Swt, com.dorkbox.SystemTray. ScalaFx/JavaFx can handle native menu’s via the… Continue reading SystemTray icon on Mac OSX problem

Sudoku solver

Sudoku solver published on No Comments on Sudoku solver

I just found an old project of mine. A Sudoku solver optimized and unreadable :-). I thought you might like it…