zakgof / velvetdb

Java-centric embedded storage framework
Apache License 2.0
16 stars 1 forks source link

Can't run unit tests in Eclipse #1

Closed ianrae closed 5 years ago

ianrae commented 5 years ago

Hi. I downloaded velvet-db, built it with Gradle 4.2 and then used eclipse plugin buildship to create eclipse proejcts.

In Eclipse i am trying to run velvetdb-core PutGetTest.java and it's failing in VelvetTxnRule because VelvetTestSuite.velvetProvider is null. How do i initialize velvetProvider so i can run individual junit test classes such as PutGetTest.java? Thanks.

zakgof commented 5 years ago

Well, at this point the test suites in the backend implementations override VelvetTestSuite and populate VelvetTestSuite.velvetProvider with the correspondent provider impl before running the tests. See XodusVelvetTestSuite in velvetdb-xodus.

ianrae commented 5 years ago

OK. That's fine. Please close this bug. I am implementing a similar idea to velvetdb, but aimed at in-memory and Postgres storage. My intent is to replace SQL syntax with something similar for entities (but removing all set relation features) and was interested in how you have moved relations out of the entity (eg. IMultiLink). Great idea.