modified method names

This commit is contained in:
Neetika Khandelwal 2024-02-03 14:23:49 +05:30
parent 971238704b
commit 7fff987c77
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
public class StreamRangeUnitTest {
@Test
public void testLimit() {
public void whenRangeStreamUsingLimitSkip_thenRangePrints() {
List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
List<Integer> expectedRange = Arrays.asList(3, 4, 5, 6, 7);
@ -24,7 +24,7 @@ public class StreamRangeUnitTest {
}
@Test
public void testCollect() {
public void whenRangeStreamUsingCollectingAndThen_thenRangePrints() {
List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
List<Integer> expectedRange = Arrays.asList(3, 4, 5, 6, 7);