use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testGetMissedStatus4.
@Test
public void testGetMissedStatus4() {
ICounter c = CounterImpl.getInstance(2, 3);
assertEquals(ICounter.PARTLY_COVERED, c.getStatus());
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testEquals4.
@Test
public void testEquals4() {
ICounter c = CounterImpl.getInstance(300, 123);
assertFalse(c.equals(new Integer(123)));
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testGetMissedStatus3.
@Test
public void testGetMissedStatus3() {
ICounter c = CounterImpl.getInstance(0, 5);
assertEquals(ICounter.FULLY_COVERED, c.getStatus());
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testEquals2.
@Test
public void testEquals2() {
ICounter c1 = CounterImpl.getInstance(300, 123);
ICounter c2 = CounterImpl.getInstance(400, 123);
assertFalse(c1.equals(c2));
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testHashCode1.
@Test
public void testHashCode1() {
ICounter c1 = CounterImpl.getInstance(300, 123);
ICounter c2 = CounterImpl.getInstance(300, 123);
assertEquals(c1.hashCode(), c2.hashCode());
}
Aggregations