yeah, I wouldn't recommend trying to do this with pure Java but you could pass around method handles for that purpose.
You certainly would want to use an `interface` and that means you need an object. It could be an object that has no fields though and receives all data through its methods.
But it does go against the spirit of objects: You want to make use of `this` because you are in the land of nouns.
nrook|11 months ago
kdps|11 months ago
btreecat|11 months ago
Run a copy of the server in a container, run client E2E tests against it.
MrDarcy|11 months ago
The mock itself may simply be a new type defined in your test case.
beders|11 months ago
You certainly would want to use an `interface` and that means you need an object. It could be an object that has no fields though and receives all data through its methods.
But it does go against the spirit of objects: You want to make use of `this` because you are in the land of nouns.