@Override protected void setUp() throws Exception { assertNotNull(this.actorRegistry); this.actorRegistry.expectedMessages(0); super.setUp(); }
public void testProductPlanBacklogItem() throws Exception { ActorInitializer initializer = new ActorInitializer(this.actorRegistry); initializer.putParameter("name", "Test Product"); initializer.putParameter("description", "A decsription."); ActorAgent product = this.actorRegistry.actorFor(Product.class, initializer); product.tell(new PlanBacklogItem( "A summary of the backlog item.", "A story about the backlog item.")); this.stayAlive(); this.actorRegistry.expectedMessages(2); this.actorRegistry.expectedMessage(PlanBacklogItem.class); this.actorRegistry.expectedMessage(BacklogItemPlanned.class); }
public void testProductScheduleSprint() throws Exception { ActorInitializer initializer = new ActorInitializer(this.actorRegistry); initializer.putParameter("name", "Test Product"); initializer.putParameter("description", "A decsription."); ActorAgent product = this.actorRegistry.actorFor(Product.class, initializer); product.tell(new ScheduleSprint( "Sprint 1", "The initial sprint.", this.daysFromNow(1), this.daysFromNow(15))); this.stayAlive(); this.actorRegistry.expectedMessages(2); this.actorRegistry.expectedMessage(ScheduleSprint.class); this.actorRegistry.expectedMessage(SprintScheduled.class); }
this.actorRegistry.expectedMessages(6); this.actorRegistry.expectedMessage(PlanBacklogItem.class); this.actorRegistry.expectedMessage(BacklogItemPlanned.class);