Tests
When implementing a command, include both a unit test and an integration test.
Implement unit tests in the following files:
- GlideClientTest.java for standalone commands.
- GlideClusterClientTest.java for cluster commands. These files are found in the java/client/src/test/java/glide/api path.
Implement integration tests in the following files:
- BatchTests.java (standalone and cluster).
- BatchTestsUtilities.java (standalone and cluster).
- SharedCommandTests.java (standalone and cluster).
- cluster/CommandTests.java (cluster).
- standalone/CommandTests.java (standalone). For commands that have options, create a separate file for the optional values.
BaseBatch.java will add the command to the Batches API. Refer to this link to view the interface directory. Refer to https://valkey.io/docs/topics/transactions/ and https://valkey.io/topics/pipelining for more details about how Batches work in Valkey.