Skip to content

Conversation

@Andy2003
Copy link
Collaborator

@Andy2003 Andy2003 commented Dec 22, 2025

This PR extracts test utilities and example generation code into a separate test-utils module to improve code organization and reusability. The refactoring moves common test infrastructure from server-plugin to a dedicated module that can be shared across the project.

Key changes:

  • Created new test-utils module with shared test utilities and base test classes
  • Moved and refactored Neo4jTestCase and AbstractApiTest to the new module
  • Consolidated utility methods from Neo4jTestUtils into SpatialTestUtils
  • Updated all test classes to use the new module structure
  • Added example data files (shapefile and OSM) for documentation generation

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extracts test utilities and example generation code into a separate test-utils module to improve code organization and reusability. The refactoring moves common test infrastructure from server-plugin to a dedicated module that can be shared across the project.

Key changes:

  • Created new test-utils module with shared test utilities and base test classes
  • Moved and refactored Neo4jTestCase and AbstractApiTest to the new module
  • Consolidated utility methods from Neo4jTestUtils into SpatialTestUtils
  • Updated all test classes to use the new module structure
  • Added example data files (shapefile and OSM) for documentation generation

Reviewed changes

Copilot reviewed 39 out of 147 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test-utils/pom.xml New Maven module for shared test utilities with dependencies on Neo4j test harness and JUnit
test-utils/src/main/java/org/neo4j/spatial/testutils/SpatialTestUtils.java New utility class consolidating spatial test helper methods
test-utils/src/main/java/org/neo4j/spatial/testutils/Neo4jTestCase.java Refactored base test class moved to test-utils module with abstract method for loading procedures
test-utils/src/main/java/org/neo4j/spatial/testutils/AbstractApiTest.java Refactored API test base class moved to test-utils module
server-plugin/src/test/java/org/neo4j/gis/spatial/Neo4jTestUtils.java Deleted - functionality moved to SpatialTestUtils
server-plugin/src/test/java/org/neo4j/gis/spatial/procedures/SpatialProceduresTest.java Updated to use new test-utils module and removed example generation code
server-plugin/pom.xml Added dependency on new test-utils module
pom.xml Added test-utils and doc-examples modules to parent POM
example-data/shp/* Added shapefile example data for documentation
example-data/osm/example.osm Added OSM example data for documentation
docs/docs/modules/ROOT/partials/generated/api/spatial/* Updated generated documentation files with correct file paths and generator references

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Andy2003 Andy2003 changed the title Extract example generation into own module Extracts test utilities and example generation code into a separate module Dec 22, 2025
@github-actions
Copy link

Test Results

 33 files  + 31   33 suites  +31   16m 55s ⏱️ + 16m 14s
357 tests +351  333 ✅ +327  24 💤 +24  0 ❌ ±0 
336 runs  +330  312 ✅ +306  24 💤 +24  0 ❌ ±0 

Results for commit 0b2cf1b. ± Comparison against base commit abae281.

@Andy2003 Andy2003 merged commit 7439a46 into master Dec 22, 2025
8 checks passed
@Andy2003 Andy2003 deleted the feature/extract-example-geneartion-into-own-module branch December 22, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants