/src/test/java/com/eastrobot/doc/watermark/WatermarkProcessorTests.java
https://github.com/ekoz/kbase-doc · Java · 30 lines · 16 code · 6 blank · 8 comment · 0 complexity · be03edfb0796f6d9596eaee864606549 MD5 · raw file
- /*
- * Power by www.xiaoi.com
- */
- package com.eastrobot.doc.watermark;
- import java.io.File;
- import org.junit.Test;
- /**
- * @author <a href="mailto:eko.z@outlook.com">eko.zhan</a>
- * @date 2018年9月18日 上午9:49:25
- * @version 1.0
- */
- public class WatermarkProcessorTests {
- @Test
- public void testProcessor() throws WatermarkException {
- File file = new File("E:\\ConvertTester\\excel\\什么是中央处理器.xlsx");
- File imgFile = new File("E:\\ConvertTester\\images\\jshrss-logo.png");
-
- WatermarkProcessor.process(file, imgFile);
- }
-
- @Test
- public void testProcessorText() throws WatermarkException {
- File file = new File("E:\\ConvertTester\\excel\\什么是中央处理器.xlsx");
- WatermarkProcessor.process(file, "小i机器人");
- }
- }