#247 -- Add test class
parent
a9c617075f
commit
6a04b5e037
@ -0,0 +1,19 @@
|
|||||||
|
package ru.ulstu;
|
||||||
|
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import ru.ulstu.core.util.StreamApiUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
public class StreamApiUtilsTest {
|
||||||
|
@Test
|
||||||
|
public void testMappingByDay() {
|
||||||
|
List<Integer> integersInitial = List.of(1, 2);
|
||||||
|
List<Integer> integers = StreamApiUtils.convert(List.of("1", "2"), Integer::valueOf);
|
||||||
|
|
||||||
|
assertEquals(integersInitial, integers);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue