Package com.mountainminds.eclemma.core

Examples of com.mountainminds.eclemma.core.ICoverageSession


    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);
View Full Code Here


  }

  @Test
  public void testMergeSession2() throws Exception {
    ILaunchConfiguration launch = new DummyLaunchConfiguration();
    ICoverageSession s0 = new DummySession(launch);
    ICoverageSession s1 = new DummySession(launch);
    manager.addSession(s0, false, null);
    manager.addSession(s1, false, null);
    listener.clear();

    final ICoverageSession m0 = manager.mergeSessions(Arrays.asList(s0, s1),
        "Merged", new NullProgressMonitor());

    assertEquals("Merged", m0.getDescription());
    assertSame(launch, m0.getLaunchConfiguration());
    assertEquals(Arrays.asList(m0), manager.getSessions());
    assertEquals(m0, manager.getActiveSession());
    reflistener.sessionAdded(m0);
    reflistener.sessionActivated(m0);
    reflistener.sessionRemoved(s0);
View Full Code Here

    reflistener = new RecordingListener();
  }

  @Test
  public void testAddSession1() {
    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);
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testAddSession2() {
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    ICoverageSession s2 = new DummySession();

    manager.addSession(s0, false, null);
    manager.addSession(s1, true, null);
    manager.addSession(s2, false, null);
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testAddSession3() {
    ICoverageSession s0 = new DummySession();

    manager.addSession(s0, false, null);
    manager.addSession(s0, false, null);

    assertEquals(Arrays.asList(s0), manager.getSessions());
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testAddSession4() {
    ICoverageSession s0 = new DummySession();

    manager.addSession(s0, false, null);
    manager.addSession(s0, true, null);

    assertEquals(Arrays.asList(s0), manager.getSessions());
View Full Code Here

    manager.addSession(null, false, null);
  }

  @Test
  public void testRemoveSession1() {
    ICoverageSession s0 = new DummySession();
    manager.addSession(s0, true, null);
    listener.clear();

    manager.removeSession(s0);
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testRemoveSession2() {
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    manager.addSession(s0, true, null);
    manager.addSession(s1, false, null);
    listener.clear();

    manager.removeSession(s1);
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testRemoveSession3() {
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    manager.addSession(s0, false, null);
    manager.addSession(s1, true, null);
    listener.clear();

    manager.removeSession(s1);
View Full Code Here

    assertEquals(reflistener, listener);
  }

  @Test
  public void testRemoveSession4() {
    ICoverageSession s0 = new DummySession();
    ICoverageSession s1 = new DummySession();
    manager.addSession(s0, true, null);
    listener.clear();

    manager.removeSession(s1);
View Full Code Here

TOP

Related Classes of com.mountainminds.eclemma.core.ICoverageSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.