mirror of https://github.com/apache/poi.git
Forbidden apis fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9618056f1d
commit
207b98a5dc
|
@ -17,6 +17,7 @@
|
|||
package org.apache.poi.xwpf.usermodel;
|
||||
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.util.LocaleUtil;
|
||||
import org.apache.poi.xwpf.XWPFTestDataSamples;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
@ -43,7 +44,7 @@ class TestXWPFComment {
|
|||
@Test
|
||||
public void testAddComment() throws IOException {
|
||||
BigInteger cId = BigInteger.valueOf(0);
|
||||
Calendar date = Calendar.getInstance();
|
||||
Calendar date = LocaleUtil.getLocaleCalendar();
|
||||
try (XWPFDocument docOut = new XWPFDocument()) {
|
||||
assertNull(docOut.getDocComments());
|
||||
|
||||
|
|
Loading…
Reference in New Issue