How about OpenAPI descriptions and Swagger UI in your Java REST API?

I have this Quarkus project which uses basic JAX-RS annotations to generate your API, fairly basic and trivially simple. Yes that’s all Quarkus needs and it looks pretty much like Spring MVC or anything else. Now I’d need to create Postman test data and buid tests for all these endpoints or… or integrate it with Swagger – both to add OpenAPI style documentation AND to have a nice web GUI client to read infos and test them.

Continue reading

Eclipse error when generating JAXB classes

Sooo you’re trying to generate Java classes from your XSD schema and JAXB generation fails with no info? Oh yes it says “see the console” but in the console you see exactly one line with the xjc compiler version… no fun. And no combination of generation flags makes it better.

Continue reading

Packaging a Spring Boot application as Windows exe

I programmed once this handy tool to retrieve one-time passwords (too much insider knowledge for opensourcing it) and as soon as some teammates heard about it, they asked for a copy to spare them the zillion clicks the password generator needs. But… the tool existed only as a Maven project in my development environment 😦

Continue reading

Integration tests, part 2 (notes on Cucumber and Selenium)

(This is part 2, some learnings a few weeks into the project described here: Integration tests = secucbootCucumber + Selenium + Spring Boot)

Selenium tricks:

Use the fluent wait instead of anything else, like here waiting for the expected messages to appear. Continue reading