Skip to content

Commit

Permalink
Refactor Testkit-backend to use jackson for databinding
Browse files Browse the repository at this point in the history
The objective of this commit is to support the current enabled tests on the Java Testkit Suite in more extensible and maintainable structure.

The commands were separated in different objects which are mapped by Jackson and ran by the CommandProcessor. Jackson is also responsible for serializing the response using custom serializers to map values and records to CypherValues, structure used by teskit to return the values with the type information.
  • Loading branch information
gjmwoods authored and bigmontz committed Nov 2, 2020
1 parent e993059 commit 4dabf24
Show file tree
Hide file tree
Showing 43 changed files with 2,315 additions and 500 deletions.
20 changes: 19 additions & 1 deletion testkit-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<scope>provided</scope>
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -49,7 +67,7 @@
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>Runner</mainClass>
<mainClass>neo4j.org.testkit.backend.Runner</mainClass>
</transformer>
</transformers>
<finalName>testkit-backend</finalName>
Expand Down
347 changes: 0 additions & 347 deletions testkit-backend/src/main/java/CommandProcessor.java

This file was deleted.

Loading

0 comments on commit 4dabf24

Please sign in to comment.