This directory contains integration tests for the Zero-Allocation-Hashing library using the Maven Invoker Plugin and JUnit 4.
Tests basic usage of the hashing library without modules.
-
Tests various hash functions (XxHash, CityHash, MurmurHash3, FarmHash)
-
Verifies hash consistency across byte arrays, ByteBuffers, and CharSequences
-
Ensures public API is accessible
-
Uses JUnit 4 assertions
Integration tests run automatically during the build with:
./mvnw clean verifyOr run them separately with:
./mvnw invoker:runThe library exports only the net.openhft.hashing package via module-info.java:
module net.openhft.hashing {
requires jdk.unsupported;
exports net.openhft.hashing;
}Internal packages (like sun.nio.ch) are not exported and cannot be accessed by consuming modules.
The library is built as a multi-release JAR with module-info.class in META-INF/versions/9/:
-
Java 8: Works as a regular JAR without module system
-
Java 9+: Works as a named module with proper encapsulation