|
|
@@ -12,6 +12,7 @@ import com.seecoder.dataanalysis.data.entity.eval.EvalExamRecord;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
@@ -31,6 +32,9 @@ class DataAnalysisApplicationTests {
|
|
|
@Autowired
|
|
|
private EvalExamRecordDao evalExamRecordDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MongoTemplate mongoTemplate;
|
|
|
+
|
|
|
@Test
|
|
|
void saveTree(){
|
|
|
List<KSScore> L1 = new ArrayList<>();
|
|
|
@@ -67,7 +71,7 @@ class DataAnalysisApplicationTests {
|
|
|
quesScore.put("2", 20.0);
|
|
|
EvalExamInfo evalExamInfo = new EvalExamInfo()
|
|
|
.setExamId(1)
|
|
|
- .setExamScore(100.0)
|
|
|
+ .setExamScore(900.0)
|
|
|
.setDifficulty(1)
|
|
|
.setStartTime(new Date())
|
|
|
.setEndTime(new Date())
|
|
|
@@ -83,5 +87,4 @@ class DataAnalysisApplicationTests {
|
|
|
.setStudentId(1);
|
|
|
evalExamRecordDao.save(evalExamRecord);
|
|
|
}
|
|
|
-
|
|
|
}
|