Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.ICounter


    assertEquals(ICounter.EMPTY, c.getStatus());
  }

  @Test
  public void testGetMissedStatus2() {
    ICounter c = CounterImpl.getInstance(5, 0);
    assertEquals(ICounter.NOT_COVERED, c.getStatus());
  }
View Full Code Here


    assertEquals(ICounter.NOT_COVERED, c.getStatus());
  }

  @Test
  public void testGetMissedStatus3() {
    ICounter c = CounterImpl.getInstance(0, 5);
    assertEquals(ICounter.FULLY_COVERED, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.FULLY_COVERED, c.getStatus());
  }

  @Test
  public void testGetMissedStatus4() {
    ICounter c = CounterImpl.getInstance(2, 3);
    assertEquals(ICounter.PARTLY_COVERED, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.PARTLY_COVERED, c.getStatus());
  }

  @Test
  public void testEquals1() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(300, 123);
    assertEquals(c1, c2);
  }
View Full Code Here

    assertEquals(c1, c2);
  }

  @Test
  public void testEquals2() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(400, 123);
    assertFalse(c1.equals(c2));
  }
View Full Code Here

    assertFalse(c1.equals(c2));
  }

  @Test
  public void testEquals3() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(300, 124);
    assertFalse(c1.equals(c2));
  }
View Full Code Here

    assertFalse(c1.equals(c2));
  }

  @Test
  public void testEquals4() {
    ICounter c = CounterImpl.getInstance(300, 123);
    assertFalse(c.equals(new Integer(123)));
  }
View Full Code Here

    assertFalse(c.equals(new Integer(123)));
  }

  @Test
  public void testHashCode1() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(300, 123);
    assertEquals(c1.hashCode(), c2.hashCode());
  }
View Full Code Here

    assertEquals(c1.hashCode(), c2.hashCode());
  }

  @Test
  public void testHashCode2() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(400, 123);
    assertFalse(c1.hashCode() == c2.hashCode());
  }
View Full Code Here

    assertFalse(c1.hashCode() == c2.hashCode());
  }

  @Test
  public void testHashCode3() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(300, 124);
    assertFalse(c1.hashCode() == c2.hashCode());
  }
View Full Code Here

TOP

Related Classes of org.jacoco.core.analysis.ICounter

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.