Skip to content

Should InvocationDispatcher be updated when ThreadingPolicy is changed? #121

Closed
@spikeh

Description

@spikeh

At the moment, InvocationDispatcher in Mockery is marked final. So after changing ThreadingPolicy, the old dispatcher (from a SingleThreadedPolicy) continues to be used. The original dispatcher receives both added expectations and invoked invocations.

All 6 tests in org.jmock.test.unit.lib.concurrent.internal.SynchroniserTests fail.

For some reason, no tests are run in org.jmock.junit5.unit.lib.concurrent.internal.SynchroniserTests.

I'm working on an extension to jMock that is currently a fork, which is difficult to maintain and keep up to date. I'm looking at moving the extension out with jMock as a dependency instead.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions