Fixing 2 wrong types in PriorityEBEDD and added tests for the message processing ordering

This commit is contained in:
Viktor Klang 2011-04-11 17:08:10 +02:00
parent 6537c75625
commit 3770a32216
3 changed files with 93 additions and 7 deletions

View file

@ -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) =>