neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
https://neo4j.com/labs/apoc
Apache License 2.0
1.72k stars 493 forks source link

Solve dev with APOC 5.22 build errors #4160

Closed vga91 closed 3 months ago

vga91 commented 3 months ago

Added systemPropertyRule to the apoc.trigger.* related tests, to solve tests that fail due to these changes.

Otherwise, we will have a NullPointer, since the triggerHandler variable won't be assigned.

This happens since, using the apocConfig().setProperty(ApocConfig.APOC_TRIGGER_ENABLED, true); currently present, this if condition is false, because the apocConfig will be evaluated later, unlike the systemPropertyRule mechanism.

Other changes