mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-12 15:04:39 +00:00
AvatarService test for StowEquipment message
This commit is contained in:
parent
9a17eb3741
commit
ede8786f36
1 changed files with 14 additions and 0 deletions
|
|
@ -271,6 +271,20 @@ class WeaponDryFireTest extends ActorTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class StowEquipmentTest extends ActorTest {
|
||||||
|
val tool = Tool(GlobalDefinitions.beamer)
|
||||||
|
|
||||||
|
"AvatarService" should {
|
||||||
|
"pass StowEquipment" in {
|
||||||
|
ServiceManager.boot(system)
|
||||||
|
val service = system.actorOf(Props[AvatarService], AvatarServiceTest.TestName)
|
||||||
|
service ! Service.Join("test")
|
||||||
|
service ! AvatarServiceMessage("test", AvatarAction.StowEquipment(PlanetSideGUID(10), PlanetSideGUID(11), 2, tool))
|
||||||
|
expectMsg(AvatarServiceResponse("/test/Avatar", PlanetSideGUID(10), AvatarResponse.StowEquipment(PlanetSideGUID(11), 2, tool)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Preparation for these three Release tests is involved.
|
Preparation for these three Release tests is involved.
|
||||||
The ServiceManager must not only be set up correctly, but must be given a TaskResolver.
|
The ServiceManager must not only be set up correctly, but must be given a TaskResolver.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue