|
|
@ -67,7 +67,7 @@ class TeacherOpenCourseQuestionLogControllerTest extends BaseTest {
|
|
|
|
? new String[]{"A", "B", "C", "D"} : new String[]{"A", "B", "C", "D", "E"};
|
|
|
|
? new String[]{"A", "B", "C", "D"} : new String[]{"A", "B", "C", "D", "E"};
|
|
|
|
Set<String> randomAnswerSet = RandomUtil
|
|
|
|
Set<String> randomAnswerSet = RandomUtil
|
|
|
|
.randomEleSet(Arrays.asList(multipleOptions), RandomUtil.randomInt(2, multipleOptions.length));
|
|
|
|
.randomEleSet(Arrays.asList(multipleOptions), RandomUtil.randomInt(2, multipleOptions.length));
|
|
|
|
// 取前N项
|
|
|
|
//排序去重 逗号分割
|
|
|
|
answer.add(join(new TreeSet<>(randomAnswerSet).toArray(), ","));
|
|
|
|
answer.add(join(new TreeSet<>(randomAnswerSet).toArray(), ","));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 判断
|
|
|
|
// 判断
|
|
|
|