Skip to content

Commit c469b8f

Browse files
committed
chore: TestStats coverage
1 parent 59a5ddf commit c469b8f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package org.fugerit.java.junit5.tag.check;
2+
3+
import org.fugerit.java.junit5.tag.check.model.TestStats;
4+
import org.junit.jupiter.api.Assertions;
5+
import org.junit.jupiter.api.Test;
6+
7+
class TestStatsTest {
8+
9+
@Test
10+
void testStats() {
11+
TestStats stats = new TestStats();
12+
stats.increaseErrors();
13+
stats.increaseFailed();
14+
stats.increaseSkipped();
15+
stats.increaseTotal();
16+
stats.increaseTotal();
17+
stats.increaseTotal();
18+
Assertions.assertEquals( 1, stats.getErrors() );
19+
Assertions.assertEquals( 1, stats.getFailed() );
20+
Assertions.assertEquals( 1, stats.getSkipped() );
21+
Assertions.assertEquals( 3, stats.getTotal() );
22+
}
23+
24+
}

0 commit comments

Comments
 (0)