assertEquals(reflistener, listener);
}
@Test
public void testMergeSession1() throws Exception {
ICoverageSession s0 = new DummySession();
ICoverageSession s1 = new DummySession();
ICoverageSession s2 = new DummySession();
manager.addSession(s0, false, null);
manager.addSession(s1, false, null);
manager.addSession(s2, false, null);
listener.clear();
final ICoverageSession m0 = manager.mergeSessions(Arrays.asList(s0, s1),
"Merged", new NullProgressMonitor());
assertEquals("Merged", m0.getDescription());
assertNull(m0.getLaunchConfiguration());
assertEquals(Arrays.asList(s2, m0), manager.getSessions());
assertEquals(m0, manager.getActiveSession());
reflistener.sessionAdded(m0);
reflistener.sessionActivated(m0);
reflistener.sessionRemoved(s0);