Skip to content

Instantly share code, notes, and snippets.

@vab2048
vab2048 / gradle.properties
Created May 22, 2023 15:52
gradle.properties
# There are a number of JVM args we use:
# -Djavax.net.ssl.trustStore=".assets/cacerts/java.cacerts"
# - Provide link to the cacerts to allow connections to internal nexus instance with self signed certificate.
# -Xmx3g
# - Launch the gradle daemon with 3gb of memory to speed up processing.
# -XX:+HeapDumpOnOutOfMemoryError
# - Take a heap dump if the gradle process goes out of memory
# -Dfile.encoding=UTF-8
# - Assume all files are encoded in utf-8.
#
@vab2048
vab2048 / AbstractAPISerializationTest.java
Created January 7, 2021 19:33
Class for testing if type is serializable and deserializable with a given Axon serializer.
import org.axonframework.serialization.Serializer;
import org.jeasy.random.EasyRandom;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.stream.Stream;
@vab2048
vab2048 / integrationTest.gradle
Last active August 17, 2023 09:08
Configure integrationTest additional source set for gradle project.
/**
* Configuration for additional source sets for holding integration tests for the application.
*
* Resources used:
* - https://www.petrikainulainen.net/programming/gradle/getting-started-with-gradle-integration-testing/
* - https://spin.atomicobject.com/2018/07/18/gradle-integration-tests/
* - https://github.com/unbroken-dome/gradle-testsets-plugin
*
* Suggested Use:
* - Place this script in the `gradle` directory.