| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| Int4SequenceSupplierTest | 13 | 2 | 0% | 4 | 0 |
| 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 | public Int4SequenceSupplierTest() {} |
| 15 | ||
| 16 | 1 | @BeforeEach |
| 17 | void setup() {} | |
| 18 | ||
| 19 | 1 | @AfterEach |
| 20 | void tearDown() {} | |
| 21 | ||
| 22 | /** | |
| 23 | * Tests the generated values. | |
| 24 | */ | |
| 25 | 1 | @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 | } |