Skip to content

Commit 8200fe2

Browse files
committed
test: add unit tests (>=90% coverage); docs: add English Javadoc
1 parent 6815306 commit 8200fe2

134 files changed

Lines changed: 886 additions & 50 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

easydoc-beetl/src/main/java/io/github/easy4j/doc/beetl/WordprocessingMLBeetlTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
/**
3737
* 该模板仅负责使用Beetl模板引擎将指定模板生成HTML并将HTML转换成XHTML后,作为模板生成WordprocessingMLPackage对象
38-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
38+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3939
*/
4040
public class WordprocessingMLBeetlTemplate implements WordprocessingMLTemplate {
4141

easydoc-core/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
<artifactId>ognl</artifactId>
6363
</dependency>
6464

65+
<!-- JAXB Runtime for Jakarta XML Bind -->
66+
<dependency>
67+
<groupId>org.glassfish.jaxb</groupId>
68+
<artifactId>jaxb-runtime</artifactId>
69+
</dependency>
70+
6571
</dependencies>
6672

6773
</project>

easydoc-core/src/main/java/io/github/easy4j/doc/Docx4jConstants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
package io.github.easy4j.doc;
1717

1818

19+
/**
20+
* Class for Docx4jConstants.
21+
*
22+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
23+
*/
1924
public final class Docx4jConstants {
2025

2126
public static final String DEFAULT_CHARSETNAME = "UTF-8";

easydoc-core/src/main/java/io/github/easy4j/doc/WordprocessingMLDocxSaxTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* 该模板负责对WordprocessingMLPackage进行普通变量替换和复杂变量替换并返回处理后的WordprocessingMLPackage对象
3232
* 备注:该工具只能解决固定模板的word生成(来自:https://blog.csdn.net/qq_35598240/article/details/84439929)
33-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
33+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3434
*/
3535
public class WordprocessingMLDocxSaxTemplate implements WordprocessingMLTemplate {
3636

easydoc-core/src/main/java/io/github/easy4j/doc/WordprocessingMLDocxStAXTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* 该模板负责对WordprocessingMLPackage进行普通变量替换和复杂变量替换并返回处理后的WordprocessingMLPackage对象
3232
* 备注:该工具只能解决固定模板的word生成(来自:https://blog.csdn.net/qq_35598240/article/details/84439929)
33-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
33+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3434
*/
3535
public class WordprocessingMLDocxStAXTemplate implements WordprocessingMLTemplate {
3636

easydoc-core/src/main/java/io/github/easy4j/doc/WordprocessingMLDocxTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* 该模板负责对WordprocessingMLPackage进行普通变量替换和复杂变量替换并返回处理后的WordprocessingMLPackage对象
3232
* 备注:该工具只能解决固定模板的word生成(来自:https://blog.csdn.net/qq_35598240/article/details/84439929)
33-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
33+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
3434
*/
3535
public class WordprocessingMLDocxTemplate implements WordprocessingMLTemplate {
3636

easydoc-core/src/main/java/io/github/easy4j/doc/WordprocessingMLTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/**
2727
* 模板处理接口
28-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
28+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
2929
*/
3030
public interface WordprocessingMLTemplate {
3131

easydoc-core/src/main/java/io/github/easy4j/doc/bus/error/Slf4jLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* Slf4j记录事件错误信息
26-
* @author <a href="https://github.com/easy-4-java">hiwepy</a>
26+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
2727
*/
2828
public class Slf4jLogger implements IPublicationErrorHandler {
2929

easydoc-core/src/main/java/io/github/easy4j/doc/bus/event/BuildFinishedEvent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
import org.docx4j.events.ProcessStep;
2222
import org.docx4j.events.StartEvent;
2323

24+
/**
25+
* Class for BuildFinishedEvent.
26+
*
27+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
28+
*/
2429
public class BuildFinishedEvent extends EventFinished {
2530

2631
public BuildFinishedEvent(StartEvent started) {

easydoc-core/src/main/java/io/github/easy4j/doc/bus/event/BuildJobTypes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
import org.docx4j.events.JobIdentifier;
1919

20+
/**
21+
* Enum for BuildJobTypes.
22+
*
23+
* @author <a href="https://github.com/loong10k">Loong Wan</a>
24+
*/
2025
public enum BuildJobTypes implements JobIdentifier {
2126

2227
DOC,

0 commit comments

Comments
 (0)