package com.qmth.teachcloud.report.report;

import com.alibaba.fastjson.JSON;
import com.qmth.teachcloud.report.TeachcloudReportApplication;
import com.qmth.teachcloud.report.business.service.CourseReportService;
import com.qmth.teachcloud.report.business.service.TAExamCourseService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * @Description:
 * @Author: CaoZixuan
 * @Date:
 */
@SpringBootTest(classes = {TeachcloudReportApplication.class})
@RunWith(SpringRunner.class)
public class CourseReportTest {
    @Resource
    private CourseReportService courseReportService;
    @Resource
    private TAExamCourseService taExamCourseService;

    @Test
    public void inspectTotal(){

    }

    @Test
    public void trail(){
        long examId = 1L;
        String examCode = "1013";
        String coefficient = "4.5";
        System.out.println(JSON.toJSONString(taExamCourseService.trialCalculate(examId,examCode,coefficient)));
    }

}
