This is a collection of code examples for different topics.
-
Design patterns: in almost all the examples static classes were used to keep all the code in on file. Almost all the examples were taken from here and here.
-
Concurrency: basically examples from baeldung.
-
Database: using HikariCP with jooq and testing with jUnit5 and testcontainers. Flyway database migrations by running
./gradlew flywayMigrate
. -
Http: using the java
HttpClient
and testing with mock-server. -
Streams: mostly a map reduce example.