|
@@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -28,7 +29,8 @@ class ChoiceDaoTest {
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
void selectByVoteIds() {
|
|
void selectByVoteIds() {
|
|
|
- List<OptionSummary> list = choiceDao.selectByVoteIds(IntStream.range(0, 10).boxed().collect(Collectors.toList()));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ List<OptionSummary> list = choiceDao.selectByVoteIds(Collections.singletonList(3));
|
|
|
list.forEach(System.out::println);
|
|
list.forEach(System.out::println);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|