//package com.yaoyicloud.render.test;
//
//import static org.junit.Assert.assertTrue;
//import java.io.IOException;
//import java.nio.file.Files;
//import java.nio.file.Paths;
//import java.util.Map;
//
//import org.junit.Test;
//
//import com.yaoyicloud.message.FxyProtos.BasicInfo;
//import com.yaoyicloud.message.FxyProtos.CheckItemDetail;
//import com.yaoyicloud.message.FxyProtos.CheckSummary;
//import com.yaoyicloud.render.platform.BasicInfoRender;
//
//public class TestBasicInfoRender {
//
//    @Test
//    public void testRenderDocx() throws IOException {
//
//        byte[] content = Files
//            .readAllBytes(Paths.get(getClass().getClassLoader().getResource("docx/basic_info.docx").getFile()));
//        BasicInfoRender render = new BasicInfoRender("../temp/");
//        String retPath = render.renderDocx(
//            BasicInfo.newBuilder().setEntName("宇宙公司")
//                .setBasicInfoSummary(CheckSummary.newBuilder().setRiskSummary("high risk").setSuggestion("accept it"))
//                .addBasicInfoChecks(
//                    CheckItemDetail.newBuilder().setName("item1").setScore(1L))
//                .addBasicInfoChecks(
//                    CheckItemDetail.newBuilder().setName("item2").setScore(2L))
//                .build(),
//            Map.of(),
//            content);
//
//        assertTrue(retPath.length() > 0);
//    }
//
//}
