package com.testor.module.train.project.service;

import com.alibaba.fastjson.JSON;
import com.testor.StartupApplication;
import com.testor.module.train.project.model.dto.TTrainProjectParam;
import com.tongtech.tfw.backend.common.biz.models.BaseResponse;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import static org.junit.jupiter.api.Assertions.*;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = StartupApplication.class)
class TTrainProjectServiceTest {
    @Autowired
    private TTrainProjectService tTrainProjectService;

    @Test
    void getByIds() throws Exception {
        String ids = "d87d4321302743a9996f6047d589fc01";
        BaseResponse<TTrainProjectParam> byIds = tTrainProjectService.getByIds(ids);
        System.out.println( JSON.toJSONString(byIds));
    }
}