Skip to content

Commit 4dabf24

Browse files
gjmwoodsbigmontz
authored andcommitted
Refactor Testkit-backend to use jackson for databinding
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.
1 parent e993059 commit 4dabf24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2315
-500
lines changed

testkit-backend/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,24 @@
3232
<groupId>com.fasterxml.jackson.core</groupId>
3333
<artifactId>jackson-databind</artifactId>
3434
</dependency>
35+
<dependency>
36+
<groupId>org.projectlombok</groupId>
37+
<artifactId>lombok</artifactId>
38+
<version>1.18.12</version>
39+
<scope>provided</scope>
40+
</dependency>
41+
42+
<!-- Test Dependencies -->
43+
<dependency>
44+
<groupId>org.hamcrest</groupId>
45+
<artifactId>hamcrest-junit</artifactId>
46+
<scope>test</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.junit.jupiter</groupId>
50+
<artifactId>junit-jupiter</artifactId>
51+
<scope>test</scope>
52+
</dependency>
3553
</dependencies>
3654

3755
<build>
@@ -49,7 +67,7 @@
4967
<configuration>
5068
<transformers>
5169
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
52-
<mainClass>Runner</mainClass>
70+
<mainClass>neo4j.org.testkit.backend.Runner</mainClass>
5371
</transformer>
5472
</transformers>
5573
<finalName>testkit-backend</finalName>

testkit-backend/src/main/java/CommandProcessor.java

Lines changed: 0 additions & 347 deletions
This file was deleted.

0 commit comments

Comments
 (0)