| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| RowIndexToValueSupplierTest | 9 | 4 | 0% | 4 | 0 |
| 1 | package guru.mikelue.foxglove.functional; | |
| 2 | ||
| 3 | import org.junit.jupiter.api.*; | |
| 4 | ||
| 5 | import guru.mikelue.misc.testlib.AbstractTestBase; | |
| 6 | ||
| 7 | import static org.assertj.core.api.Assertions.*; | |
| 8 | ||
| 9 | public class RowIndexToValueSupplierTest extends AbstractTestBase { | |
| 10 | 1 | public RowIndexToValueSupplierTest() {} |
| 11 | ||
| 12 | 1 | @BeforeEach |
| 13 | void setup() {} | |
| 14 | ||
| 15 | 1 | @AfterEach |
| 16 | void tearDown() {} | |
| 17 | ||
| 18 | /** | |
| 19 | * Tests the conversion from row index to value. | |
| 20 | */ | |
| 21 | 1 | @Test |
| 22 | void get() | |
| 23 | { | |
| 24 | 1 | var testedFunction = RowIndexToValueSupplier.of( |
| 25 | rowIndex -> "Value-" + rowIndex | |
| 26 | ); | |
| 27 | ||
| 28 | 1 | assertThat(testedFunction.get()) |
| 29 | .isEqualTo("Value-0"); | |
| 30 | 1 | assertThat(testedFunction.get()) |
| 31 | .isEqualTo("Value-1"); | |
| 32 | 1 | assertThat(testedFunction.get()) |
| 33 | .isEqualTo("Value-2"); | |
| 34 | } | |
| 35 | } |