neo4j-contrib / java-rest-binding

Java Bindings for the Neo4J Server REST API, providing an implementation of GraphDatabaseService
Other
120 stars 72 forks source link

Unit testing class not packaged? #73

Closed fdietze closed 10 years ago

fdietze commented 10 years ago

Hi,

I'm trying to figure out how to do unit tests with this rest-interface. As I can see in the tests of the project, you are using RestTestBase in the tests. Is that what I am looking for? If yes, why is it not packaged?

The other option would be to start a new local neo4j rest server on every test-run. This seems to be a bit overkill to me.

How is it meant to be done?

Thank you!

jexp commented 10 years ago

What do you want to do? Actually I want to discontinue this package, perhaps you want to look into the Neo4j JDBC driver.

        <dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j-rest-graphdb</artifactId>
            <version>2.0.1</version>
            <type>test-jar</type>
           <scope>test</scope>
        </dependency>
fdietze commented 10 years ago

I want to switch from an embedded neo4j database (neo4j java api) to an external one without changing too much code. With this project it seemed like it was trivial to do that.

The JDBC driver looks promising. I will have a look into that.

jexp commented 10 years ago

Yep but it will perform 10x or so worse, leaky abstractions with a network in between :(

If you have questions regarding the JDBC please send them to the google group.