Corda - VaultQueryException: Please Register The Entity

136 Views Asked by At

According to the R3 documentation:

Tests using the DriverDSL will automatically register your custom schemas if they are in the same project structure as the driver call.

What if the custom schemas are NOT part of the same project structure as the driver call?

1

There are 1 best solutions below

2
On BEST ANSWER

If the schemas are part of a cordapp, then including them in the driver dsl's creation should also load their schemas.

driver(DriverParameters(cordappsForAllNodes = cordappsForPackages("packages")))