This package contains integration tests for Elide, and is executed as part of the maven verify lifecycle.
The integration tests require a local mysql instance running with a database called root
. It should be accessible by
user root
with password root
. The maven verify lifecycle uses the jcabi-mysql-maven-plugin to bring up a mysql
server with these settings. In order to run integration tests in IntelliJ, you will need to bring up your own mysql
instance with the same configuration.
The integration tests must be executed against a concrete data store implementation. The maven lifecycles automatically manage this for hibernate3 and hibernate5. If you want to run integration tests in IntelliJ, there are two simple steps to follow.
- Create a new TestNG run configuration that targets the integration test you want to run (e.g.
FilterIT
) - Change "Use classpath of module" to the data store you want to run the integration test against
(e.g.
elide-datastore-hibernate5
) - Set the dataStoreSupplier property in VM options
(e.g.
-DdataStoreSupplier=com.yahoo.elide.datastores.hibernate5.HibernateDataStoreSupplier
)
Here's an example of working configuration for the FilterIT integration test using the Hibernate 5 data store: