capabilities.add(capa4);
// Bugs.
LOG.info("Creating bugs.");
List<Bug> bugs = Lists.newArrayList();
Bug bug1 = new Bug();
bug1.setExternalId(42L);
bug1.setTitle("SSL certificate error in some browsers.");
bug1.addBugGroup("security");
bug1.addBugGroup("checkout");
bug1.setParentProjectId(projectId);
bug1.setPriority(1L);
bug1.setSeverity(2L);
bug1.setState("Open");
bug1.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
bug1.setStateDate(System.currentTimeMillis() - (84000000 * 4));
bug1.setBugUrl("http://example/42");
dataService.addBug(bug1);
bugs.add(bug1);
Bug bug2 = new Bug();
bug2.setExternalId(123L);
bug2.setTitle("+1 button is not showing on products with prime number IDs.");
bug2.addBugGroup("social");
bug2.addBugGroup("browsing");
bug2.setParentProjectId(projectId);
bug2.setPriority(1L);
bug2.setSeverity(2L);
bug2.setState("Open");
bug2.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
bug2.setStateDate(System.currentTimeMillis() - (84000000 * 2));
bug2.setBugUrl("http://example/123");
dataService.addBug(bug2);
bugs.add(bug2);
Bug bug3 = new Bug();
bug3.setExternalId(122L);
bug3.setTitle("Search results always return developer's favorite item");
bug3.addBugGroup("search");
bug3.addBugGroup("accuracy");
bug3.setParentProjectId(projectId);
bug3.setPriority(4L);
bug3.setSeverity(4L);
bug3.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
bug3.setState("Closed");
bug3.setStateDate(System.currentTimeMillis() - (84000000 * 10));
bug3.setBugUrl("http://example/34121");
dataService.addBug(bug3);
bugs.add(bug3);
// Checkins.
LOG.info("Creating checkins.");