1. Project Clover database Wed Nov 12 2025 05:07:35 UTC
  2. Package guru.mikelue.foxglove.functional

File Int4SequenceSupplierTest.java

 

Code metrics

0
2
4
1
36
24
4
2
0.5
4
1

Classes

Class Line # Actions
Int4SequenceSupplierTest 13 2 0% 4 0
1.0100%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package guru.mikelue.foxglove.functional;
2   
3    import java.util.List;
4   
5    import org.junit.jupiter.api.AfterEach;
6    import org.junit.jupiter.api.BeforeEach;
7    import org.junit.jupiter.api.Test;
8   
9    import guru.mikelue.misc.testlib.AbstractTestBase;
10   
11    import static org.assertj.core.api.Assertions.assertThat;
12   
 
13    public class Int4SequenceSupplierTest extends AbstractTestBase {
 
14  1 toggle public Int4SequenceSupplierTest() {}
15   
 
16  1 toggle @BeforeEach
17    void setup() {}
18   
 
19  1 toggle @AfterEach
20    void tearDown() {}
21   
22    /**
23    * Tests the generated values.
24    */
 
25  1 toggle @Test
26    void get()
27    {
28  1 var testedSupplier = new Int4SequenceSupplier(10, 5);
29   
30  1 assertThat(List.of(
31    testedSupplier.nextValue(), testedSupplier.nextValue(),
32    testedSupplier.nextValue(), testedSupplier.nextValue()
33    ))
34    .containsExactly(10, 15, 20, 25);
35    }
36    }