void () { LocalChangeList changeList = myChangeListManager.getDefaultChangeList(); assertNotNull(changeList); assertEquals(myTaskManager.getActiveTask(), myTaskManager.getAssociatedTask(changeList)); LocalTaskImpl bond = new LocalTaskImpl("007", "Bond"); bond.setIssue(true); TestRepository repository = new TestRepository(); repository.setShouldFormatCommitMessage(true); bond.setRepository(repository); myTaskManager.getState().createChangelist = false; runOpenTaskDialog(bond); assertEquals(1, bond.getChangeLists().size()); assertEquals(changeList.getId(), bond.getChangeLists().get(0).id); assertEquals("007 Bond", myChangeListManager.getDefaultChangeList().getComment()); }