Skip to content

Conversation

@michael-simons
Copy link
Contributor

This commit remoces the command processor from the TestKit state. The processor is supposed to use that state, not to be part of it.
However, some requests, like NewDriver need the processor to trigger further state.
Therefor the processor is now provided as injectable value via Jackson, so that any request can indicate that it needs a processor via a constructor argument.

@michael-simons michael-simons force-pushed the issue/decouple-testkitstate-and-processor branch from 2faa62c to 41df4bb Compare August 23, 2021 09:58
This commit remoces the command processor from the TestKit state. The processor is supposed to use that state, not to be part of it.
However, some requests, like `NewDriver` need the processor to trigger further state.
Therefor the processor is now provided as injectable value via Jackson, so that any request can indicate that it needs a processor via a constructor argument.
@michael-simons michael-simons force-pushed the issue/decouple-testkitstate-and-processor branch from 41df4bb to 6f404b2 Compare August 23, 2021 12:02
Copy link
Contributor

@injectives injectives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@injectives injectives merged commit b773784 into neo4j:4.4 Aug 23, 2021
injectives pushed a commit to injectives/neo4j-java-driver that referenced this pull request Sep 6, 2021
This commit remoces the command processor from the TestKit state. The processor is supposed to use that state, not to be part of it.
However, some requests, like `NewDriver` need the processor to trigger further state.
Therefor the processor is now provided as injectable value via Jackson, so that any request can indicate that it needs a processor via a constructor argument.
injectives added a commit that referenced this pull request Sep 6, 2021
* Add support for Resolver and DomainNameResolver to async Testkit backend (#992)

* Decouple TestkitState from CommandProcessor. (#993)

This commit remoces the command processor from the TestKit state. The processor is supposed to use that state, not to be part of it.
However, some requests, like `NewDriver` need the processor to trigger further state.
Therefor the processor is now provided as injectable value via Jackson, so that any request can indicate that it needs a processor via a constructor argument.

* Remove unnessary Lombok noise. (#995)

* Migrate Testkit backend to Netty implementation (#994)

* Migrate Testkit backend to Netty implementation

* Remove unnessary Optional in processAsync.

This brings both sync and asynchronous paths in TestKitState in symmetry.
In addition, I noticed that the transaction related tests behaved differently in sync and async (when a tx is not found). I fixed that.

* Remove redundant lines

Co-authored-by: Michael Simons <michael.simons@neo4j.com>

* Add reactive backend support (#998)

This update brings reactive backend support.

Its scope is limited to providing partial transparent support for existing test cases. More updates are expected in future PRs.

Co-authored-by: Michael Simons <michael.simons@neo4j.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants