assertFalse(savedBacklogItems.isEmpty());
assertEquals(1, savedBacklogItems.size());
}
public void testScheduledAndCommittedBacklogItems() throws Exception {
BacklogItem backlogItem1 =
new BacklogItem(
new TenantId("12345"),
new ProductId("p00000"),
new BacklogItemId("bli1"),
"My backlog item 1.",
"Domain Model",
BacklogItemType.FEATURE,
BacklogItemStatus.PLANNED,
StoryPoints.EIGHT);
BacklogItem backlogItem2 =
new BacklogItem(
new TenantId("12345"),
new ProductId("p00000"),
new BacklogItemId("bli2"),
"My backlog item 1.",
"Domain Model",
BacklogItemType.FEATURE,
BacklogItemStatus.PLANNED,
StoryPoints.EIGHT);
BacklogItem backlogItem3 =
new BacklogItem(
new TenantId("12345"),
new ProductId("p00000"),
new BacklogItemId("bli3"),
"My backlog item 1.",
"Domain Model",
BacklogItemType.FEATURE,
BacklogItemStatus.PLANNED,
StoryPoints.EIGHT);
Release release = new Release(
new TenantId("12345"), new ProductId("p00000"), new ReleaseId("r11111"),
"release1", "My release 1.", new Date(), new Date());
Sprint sprint = new Sprint(
new TenantId("12345"), new ProductId("p00000"), new SprintId("s11111"),
"sprint1", "My sprint 1.", new Date(), new Date());
backlogItem2.scheduleFor(release);
backlogItem2.commitTo(sprint);
backlogItem3.scheduleFor(release);
LevelDBUnitOfWork.start(this.database);
backlogItemRepository.save(backlogItem1);
backlogItemRepository.save(backlogItem2);
backlogItemRepository.save(backlogItem3);