//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.CheckSummary;
//import com.yaoyicloud.message.FxyProtos.DishonestPersonsInfo;
//import com.yaoyicloud.message.FxyProtos.PublicRecord;
//import com.yaoyicloud.render.platform.PlatformPublicRecordRender;
//
//public class TestPublicRecordRender {
//
//    @Test
//    public void testRenderDocx() throws IOException {
//
//        byte[] content = Files
//            .readAllBytes(Paths.get(getClass().getClassLoader().getResource("docx/public_record.docx").getFile()));
//        PlatformPublicRecordRender render = new PlatformPublicRecordRender("../temp/");
//        String retPath = render.renderDocx(
//            PublicRecord.newBuilder()
//                .setPublicRecordSummary(CheckSummary.newBuilder().setRiskSummary("high risk").setSuggestion("accept it"))
//                .addDishonestPersons(DishonestPersonsInfo.newBuilder().setCourt("fake cout"))
//                .addDishonestPersons(DishonestPersonsInfo.newBuilder().setAmount("fake amount"))
//                .build(),
//            Map.of(),
//            content);
//
//        assertTrue(retPath.length() > 0);
//    }
//
//}
