Fixing 2 wrong types in PriorityEBEDD and added tests for the message processing ordering
This commit is contained in:
parent
6537c75625
commit
3770a32216
3 changed files with 93 additions and 7 deletions
|
|
@ -173,11 +173,7 @@ class DefaultMailboxSpec extends MailboxSpec {
|
|||
}
|
||||
|
||||
class PriorityMailboxSpec extends MailboxSpec {
|
||||
val comparator = new java.util.Comparator[MessageInvocation] {
|
||||
def compare(a: MessageInvocation, b: MessageInvocation): Int = {
|
||||
a.## - b.##
|
||||
}
|
||||
}
|
||||
val comparator = PriorityGenerator(_.##)
|
||||
lazy val name = "The priority mailbox implementation"
|
||||
def factory = {
|
||||
case UnboundedMailbox(blockDequeue) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue