Skip to content

refactor: improve test utility classes and enhance error handling

5bd7a26
Select commit
Loading
Failed to load commit list.
Merged

#2865 feat: create test-utils module and refactor test imports #2885

refactor: improve test utility classes and enhance error handling
5bd7a26
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Dec 6, 2025 in 0s

2 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 2
           

Complexity increasing per file
==============================
- test-utils/src/main/java/com/arcadedb/test/TestServerHelper.java  29
- test-utils/src/main/java/com/arcadedb/test/WebSocketClientHelper.java  11
         

See the complete overview on Codacy

Annotations

Check warning on line 122 in test-utils/src/main/java/com/arcadedb/test/TestServerHelper.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test-utils/src/main/java/com/arcadedb/test/TestServerHelper.java#L122

An instanceof check is being performed on the caught exception.  Create a separate catch clause for this exception type.

Check warning on line 125 in test-utils/src/main/java/com/arcadedb/test/TestServerHelper.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test-utils/src/main/java/com/arcadedb/test/TestServerHelper.java#L125

Avoid throwing raw exception types.