Skip to content

Add JUnit 5 test suite with MockBukkit infrastructure

5e6feff
Select commit
Loading
Failed to load commit list.
Open

Release 1.6.0 #41

Add JUnit 5 test suite with MockBukkit infrastructure
5e6feff
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 26, 2026 in 24s

Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 12 in src/test/java/world/bentobox/twerk/listeners/TreeGrowListenerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qEh3L6z4FBHlAk1&open=AZ3L-qEh3L6z4FBHlAk1&pullRequest=41

Check warning on line 16 in src/test/java/world/bentobox/twerk/listeners/TreeGrowListenerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use an "instanceof" comparison instead.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qEh3L6z4FBHlAk3&open=AZ3L-qEh3L6z4FBHlAk3&pullRequest=41

Check failure on line 20 in src/test/java/world/bentobox/twerk/listeners/TreeGrowListenerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qEh3L6z4FBHlAk2&open=AZ3L-qEh3L6z4FBHlAk2&pullRequest=41

Check warning on line 179 in src/test/java/world/bentobox/twerk/TwerkingForTreesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Update this method so that its implementation is not identical to "testOnLoad" on line 130.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qE93L6z4FBHlAk5&open=AZ3L-qE93L6z4FBHlAk5&pullRequest=41

Check warning on line 12 in src/test/java/world/bentobox/twerk/CommonTestSetup.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.Collections'.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qEx3L6z4FBHlAk4&open=AZ3L-qEx3L6z4FBHlAk4&pullRequest=41

Check warning on line 22 in src/test/java/world/bentobox/twerk/TwerkingForTreesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.Mock'.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3L-qE93L6z4FBHlAk6&open=AZ3L-qE93L6z4FBHlAk6&pullRequest=41

Check warning on line 137 in src/main/java/world/bentobox/twerk/listeners/TreeGrowListener.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a primitive boolean expression here.

See more on https://sonarcloud.io/project/issues?id=BentoBoxWorld_TwerkingForTrees&issues=AZ3Lv9GTSGa4ah7sRFft&open=AZ3Lv9GTSGa4ah7sRFft&pullRequest=41