Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Test for SmallestMailbox Router #42

Open
VaughnVernon opened this issue Feb 8, 2019 · 0 comments
Open

Need Test for SmallestMailbox Router #42

VaughnVernon opened this issue Feb 8, 2019 · 0 comments

Comments

@VaughnVernon
Copy link
Contributor

The test must create a subclass of SmallestMailboxRouter, which can be seen here:

https://github.com/vlingo/vlingo-actors/blob/master/src/main/java/io/vlingo/actors/SmallestMailboxRouter.java

The test must also create two or more other actors that implement a protocol to serve as workers. It is the worker actors whose mailbox sizes need to be controlled by the test cases to verify that the SmallestMailboxRouter in fact selects the routee with the fewest pending messages.

Note that the following exposes the routee’s pending message count to the router.

https://github.com/vlingo/vlingo-actors/blob/0e18f6dd41fce33ed7b97a7a08fd14e76de84c34/src/main/java/io/vlingo/actors/Routee.java#L50

There is already a test case stub https://github.com/vlingo/vlingo-actors/blob/master/src/test/java/io/vlingo/actors/SmallestMailboxRouterTest.java

You may also benefit by reviewing/using the vlingo-telemetry component.

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

No branches or pull requests

1 participant