void () { TestAttachGroup group1 = new TestAttachGroup("group1", 1); TestAttachGroup group2 = new TestAttachGroup("group2", 2); ProcessInfo info1 = new ProcessInfo(1, "same command line", "exec1", "args1"); ProcessInfo info2 = new ProcessInfo(2, "same command line", "exec2", "args2"); UserDataHolderBase dataHolder = new UserDataHolderBase(); AttachToProcessItem item1 = fixtureCreateAttachToProcessItem(group1, true, info1, createDebuggers("gdb1"), dataHolder); AttachToProcessItem item2 = fixtureCreateAttachToProcessItem(group2, true, info2, createDebuggers("gdb2"), dataHolder); RecentItem recentItem1 = fixtureCreateHistoryItem(info1, group1, "gdb1"); RecentItem recentItem2 = fixtureCreateHistoryItem(info2, group2, "gdb2"); addToRecent(getProject(), item1); assertOrderedEquals(getRecentItems(LocalAttachHost.INSTANCE, getProject()), recentItem1); addToRecent(getProject(), item2); assertOrderedEquals(getRecentItems(LocalAttachHost.INSTANCE, getProject()), recentItem2); }