Skip to content

Migrate Zero Allocation Hashing tests to JUnit 5#108

Open
peter-lawrey wants to merge 6 commits into
developfrom
feature/junit5
Open

Migrate Zero Allocation Hashing tests to JUnit 5#108
peter-lawrey wants to merge 6 commits into
developfrom
feature/junit5

Refine JUnit 5 migration fixes and test cleanup

551fbe9
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 30, 2026 in 18s

Annotations

Check warning on line 52 in src/test/java/net/openhft/hashing/CharSequenceAccessTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce the number of assertions from 28 to less than 25.

See more on https://sonarcloud.io/project/issues?id=OpenHFT_Zero-Allocation-Hashing&issues=AZ0ppPxn2BMkbzG0LxqQ&open=AZ0ppPxn2BMkbzG0LxqQ&pullRequest=108

Check warning on line 45 in src/test/java/net/openhft/hashing/LongTupleHashFunctionTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertEquals instead.

See more on https://sonarcloud.io/project/issues?id=OpenHFT_Zero-Allocation-Hashing&issues=AZ0feiybGkojc2DtJjhn&open=AZ0feiybGkojc2DtJjhn&pullRequest=108

Check warning on line 86 in src/test/java/net/openhft/hashing/ModernCompactStringHashTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=OpenHFT_Zero-Allocation-Hashing&issues=AZ0feirRGkojc2DtJjha&open=AZ0feirRGkojc2DtJjha&pullRequest=108

Check warning on line 14 in src/test/java/net/openhft/hashing/DualHashFunctionTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=OpenHFT_Zero-Allocation-Hashing&issues=AZ0fei5BGkojc2DtJjiR&open=AZ0fei5BGkojc2DtJjiR&pullRequest=108