Skip to content

Testing

Samuel Villavicencio edited this page Nov 1, 2016 · 3 revisions

A Spring Data Neo4j configuration was written for unit tests in order to use an embedded instance of Neo4j. This approach revokes dependency from an external Neo4j service and reduces run time to the extent that calls to the database are made internally rather than to another process.

Unit Tests

Unit tests verify the functionality of the repository classes.

MovieRepositoryTests : testCaseInsensitiveSearch

This test verifies that given multiple patterns which vary only in case are used to search for movies that they return the same result.

UserRepositoryTests : testUserLikesMovieNoDuplicates

This test verifies that a like relationship will not be created if the user already likes that movie.

More details can be found on CircleCI.

Clone this wiki locally