Browse Source

修改测试目录

pull/2472/head
Jiaju Zhuang 3 years ago
parent
commit
7147d1d9d2
  1. 3
      easyexcel-test/README.md
  2. 24
      easyexcel-test/pom.xml
  3. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/StyleTestUtils.java
  4. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationData.java
  5. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java
  6. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataTest.java
  7. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameData.java
  8. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java
  9. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataTest.java
  10. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationStyleData.java
  11. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java
  12. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataTest.java
  13. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataReadData.java
  14. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataWriteData.java
  15. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataListener.java
  16. 8
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataTest.java
  17. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterReadData.java
  18. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterTest.java
  19. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterWriteData.java
  20. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ImageData.java
  21. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterData.java
  22. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterDataListener.java
  23. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatData.java
  24. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java
  25. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptData.java
  26. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataListener.java
  27. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataTest.java
  28. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionData.java
  29. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataListener.java
  30. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataTest.java
  31. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionThrowDataListener.java
  32. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeData.java
  33. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeDataTest.java
  34. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraData.java
  35. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataListener.java
  36. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataTest.java
  37. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/FillData.java
  38. 22
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/FillDataTest.java
  39. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationData.java
  40. 6
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationDataTest.java
  41. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedData.java
  42. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedTest.java
  43. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleData.java
  44. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleDataTest.java
  45. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandler.java
  46. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerData.java
  47. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerTest.java
  48. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexDataListener.java
  49. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadData.java
  50. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadDataTest.java
  51. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataListener.java
  52. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataTest.java
  53. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadData.java
  54. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataListener.java
  55. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataTest.java
  56. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeData.java
  57. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeDataListener.java
  58. 10
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeDataTest.java
  59. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsData.java
  60. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java
  61. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsListener.java
  62. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/nomodel/NoModelDataTest.java
  63. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelData.java
  64. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataListener.java
  65. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataTest.java
  66. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterData.java
  67. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataListener.java
  68. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataTest.java
  69. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionData.java
  70. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataListener.java
  71. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataTest.java
  72. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleData.java
  73. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataListener.java
  74. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataSheetNameListener.java
  75. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataTest.java
  76. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/skip/SkipData.java
  77. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/skip/SkipDataTest.java
  78. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortData.java
  79. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortDataListener.java
  80. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortDataTest.java
  81. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleData.java
  82. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleDataListener.java
  83. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java
  84. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateData.java
  85. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataListener.java
  86. 4
      easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataTest.java
  87. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/fill/FillData.java
  88. 12
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/fill/FillTest.java
  89. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CellDataDemoHeadDataListener.java
  90. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CellDataReadDemoData.java
  91. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/ConverterData.java
  92. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/ConverterDataListener.java
  93. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CustomStringStringConverter.java
  94. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoDAO.java
  95. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoData.java
  96. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoDataListener.java
  97. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExceptionListener.java
  98. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraData.java
  99. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraListener.java
  100. 0
      easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoHeadDataListener.java
  101. Some files were not shown because too many files have changed in this diff Show More

3
easyexcel-test/README.md

@ -0,0 +1,3 @@
# easyexcel-test
测试案例

24
easyexcel-test/pom.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel-parent</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<artifactId>easyexcel-test</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
</dependencies>
</project>

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/StyleTestUtils.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/StyleTestUtils.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationStyleData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationStyleData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataReadData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataReadData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataWriteData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataWriteData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataListener.java

8
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataTest.java

@ -61,17 +61,17 @@ public class ConverterDataTest {
@Test @Test
public void t11ReadAllConverter07() { public void t11ReadAllConverter07() {
readAllConverter("converter" + File.separator + "converter07.xlsx"); readAllConverter("easyexcel-test/test/resources/converter" + File.separator + "converter07.xlsx");
} }
@Test @Test
public void t12ReadAllConverter03() { public void t12ReadAllConverter03() {
readAllConverter("converter" + File.separator + "converter03.xls"); readAllConverter("easyexcel-test/test/resources/converter" + File.separator + "converter03.xls");
} }
@Test @Test
public void t13ReadAllConverterCsv() { public void t13ReadAllConverterCsv() {
readAllConverter("converter" + File.separator + "converterCsv.csv"); readAllConverter("easyexcel-test/test/resources/converter" + File.separator + "converterCsv.csv");
} }
@Test @Test
@ -90,7 +90,7 @@ public class ConverterDataTest {
List<ImageData> list = new ArrayList<>(); List<ImageData> list = new ArrayList<>();
ImageData imageData = new ImageData(); ImageData imageData = new ImageData();
list.add(imageData); list.add(imageData);
String imagePath = TestFileUtil.getPath() + "converter" + File.separator + "img.jpg"; String imagePath = TestFileUtil.getPath() + "easyexcel-test/test/resources/converter" + File.separator + "img.jpg";
imageData.setByteArray(FileUtils.readFileToByteArray(new File(imagePath))); imageData.setByteArray(FileUtils.readFileToByteArray(new File(imagePath)));
imageData.setFile(new File(imagePath)); imageData.setFile(new File(imagePath));
imageData.setString(imagePath); imageData.setString(imagePath);

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterReadData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterReadData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterWriteData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ConverterWriteData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ImageData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ImageData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/converter/ReadAllConverterDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatData.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java

@ -26,8 +26,8 @@ public class DateFormatTest {
@BeforeClass @BeforeClass
public static void init() { public static void init() {
file07 = TestFileUtil.readFile("dataformat" + File.separator + "dataformat.xlsx"); file07 = TestFileUtil.readFile("easyexcel-test/test/resources/dataformat" + File.separator + "dataformat.xlsx");
file03 = TestFileUtil.readFile("dataformat" + File.separator + "dataformat.xls"); file03 = TestFileUtil.readFile("easyexcel-test/test/resources/dataformat" + File.separator + "dataformat.xls");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/encrypt/EncryptDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionThrowDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionThrowDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/excludeorinclude/ExcludeOrIncludeDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/extra/ExtraData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataListener.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/extra/ExtraDataTest.java

@ -22,8 +22,8 @@ public class ExtraDataTest {
@BeforeClass @BeforeClass
public static void init() { public static void init() {
file03 = TestFileUtil.readFile("extra" + File.separator + "extra.xls"); file03 = TestFileUtil.readFile("easyexcel-test/test/resources/extra" + File.separator + "extra.xls");
file07 = TestFileUtil.readFile("extra" + File.separator + "extra.xlsx"); file07 = TestFileUtil.readFile("easyexcel-test/test/resources/extra" + File.separator + "extra.xlsx");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/FillData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/FillData.java

22
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/FillDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/FillDataTest.java

@ -56,25 +56,25 @@ public class FillDataTest {
file07 = TestFileUtil.createNewFile("fill07.xlsx"); file07 = TestFileUtil.createNewFile("fill07.xlsx");
file03 = TestFileUtil.createNewFile("fill03.xls"); file03 = TestFileUtil.createNewFile("fill03.xls");
fileCsv = TestFileUtil.createNewFile("fill.csv"); fileCsv = TestFileUtil.createNewFile("fill.csv");
simpleTemplate07 = TestFileUtil.readFile("fill" + File.separator + "simple.xlsx"); simpleTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "simple.xlsx");
simpleTemplate03 = TestFileUtil.readFile("fill" + File.separator + "simple.xls"); simpleTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "simple.xls");
simpleTemplateCsv = TestFileUtil.readFile("fill" + File.separator + "simple.csv"); simpleTemplateCsv = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "simple.csv");
fileComplex07 = TestFileUtil.createNewFile("fillComplex07.xlsx"); fileComplex07 = TestFileUtil.createNewFile("fillComplex07.xlsx");
complexFillTemplate07 = TestFileUtil.readFile("fill" + File.separator + "complex.xlsx"); complexFillTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "complex.xlsx");
fileComplex03 = TestFileUtil.createNewFile("fillComplex03.xls"); fileComplex03 = TestFileUtil.createNewFile("fillComplex03.xls");
complexFillTemplate03 = TestFileUtil.readFile("fill" + File.separator + "complex.xls"); complexFillTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "complex.xls");
fileHorizontal07 = TestFileUtil.createNewFile("fillHorizontal07.xlsx"); fileHorizontal07 = TestFileUtil.createNewFile("fillHorizontal07.xlsx");
horizontalFillTemplate07 = TestFileUtil.readFile("fill" + File.separator + "horizontal.xlsx"); horizontalFillTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "horizontal.xlsx");
fileHorizontal03 = TestFileUtil.createNewFile("fillHorizontal03.xls"); fileHorizontal03 = TestFileUtil.createNewFile("fillHorizontal03.xls");
horizontalFillTemplate03 = TestFileUtil.readFile("fill" + File.separator + "horizontal.xls"); horizontalFillTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "horizontal.xls");
byName07 = TestFileUtil.createNewFile("byName07.xlsx"); byName07 = TestFileUtil.createNewFile("byName07.xlsx");
byNameTemplate07 = TestFileUtil.readFile("fill" + File.separator + "byName.xlsx"); byNameTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "byName.xlsx");
byName03 = TestFileUtil.createNewFile("byName03.xls"); byName03 = TestFileUtil.createNewFile("byName03.xls");
byNameTemplate03 = TestFileUtil.readFile("fill" + File.separator + "byName.xls"); byNameTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "byName.xls");
fileComposite07 = TestFileUtil.createNewFile("fileComposite07.xlsx"); fileComposite07 = TestFileUtil.createNewFile("fileComposite07.xlsx");
compositeFillTemplate07 = TestFileUtil.readFile("fill" + File.separator + "composite.xlsx"); compositeFillTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "composite.xlsx");
fileComposite03 = TestFileUtil.createNewFile("fileComposite03.xls"); fileComposite03 = TestFileUtil.createNewFile("fileComposite03.xls");
compositeFillTemplate03 = TestFileUtil.readFile("fill" + File.separator + "composite.xls"); compositeFillTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "composite.xls");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationData.java

6
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/annotation/FillAnnotationDataTest.java

@ -46,8 +46,8 @@ public class FillAnnotationDataTest {
public static void init() { public static void init() {
file07 = TestFileUtil.createNewFile("fillAnnotation07.xlsx"); file07 = TestFileUtil.createNewFile("fillAnnotation07.xlsx");
file03 = TestFileUtil.createNewFile("fillAnnotation03.xls"); file03 = TestFileUtil.createNewFile("fillAnnotation03.xls");
fileTemplate07 = TestFileUtil.readFile("fill" + File.separator + "annotation.xlsx"); fileTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "annotation.xlsx");
fileTemplate03 = TestFileUtil.readFile("fill" + File.separator + "annotation.xls"); fileTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "annotation.xls");
} }
@Test @Test
@ -112,7 +112,7 @@ public class FillAnnotationDataTest {
data.setNumber(99.99); data.setNumber(99.99);
data.setString1("string1"); data.setString1("string1");
data.setString2("string2"); data.setString2("string2");
data.setImage(TestFileUtil.getPath() + "converter" + File.separator + "img.jpg"); data.setImage(TestFileUtil.getPath() + "easyexcel-test/test/resources/converter" + File.separator + "img.jpg");
list.add(data); list.add(data);
list.add(data); list.add(data);
list.add(data); list.add(data);

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedData.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleAnnotatedTest.java

@ -46,8 +46,8 @@ public class FillStyleAnnotatedTest {
public static void init() { public static void init() {
FillStyleAnnotated07 = TestFileUtil.createNewFile("FillStyleAnnotated07.xlsx"); FillStyleAnnotated07 = TestFileUtil.createNewFile("FillStyleAnnotated07.xlsx");
FillStyleAnnotated03 = TestFileUtil.createNewFile("FillStyleAnnotated03.xls"); FillStyleAnnotated03 = TestFileUtil.createNewFile("FillStyleAnnotated03.xls");
fileStyleTemplate07 = TestFileUtil.readFile("fill" + File.separator + "style.xlsx"); fileStyleTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "style.xlsx");
fileStyleTemplate03 = TestFileUtil.readFile("fill" + File.separator + "style.xls"); fileStyleTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "style.xls");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleData.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/fill/style/FillStyleDataTest.java

@ -49,8 +49,8 @@ public class FillStyleDataTest {
fileStyle03 = TestFileUtil.createNewFile("fileStyle03.xls"); fileStyle03 = TestFileUtil.createNewFile("fileStyle03.xls");
fileStyleHandler07 = TestFileUtil.createNewFile("fileStyleHandler07.xlsx"); fileStyleHandler07 = TestFileUtil.createNewFile("fileStyleHandler07.xlsx");
fileStyleHandler03 = TestFileUtil.createNewFile("fileStyleHandler03.xls"); fileStyleHandler03 = TestFileUtil.createNewFile("fileStyleHandler03.xls");
fileStyleTemplate07 = TestFileUtil.readFile("fill" + File.separator + "style.xlsx"); fileStyleTemplate07 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "style.xlsx");
fileStyleTemplate03 = TestFileUtil.readFile("fill" + File.separator + "style.xls"); fileStyleTemplate03 = TestFileUtil.readFile("easyexcel-test/test/resources/fill" + File.separator + "style.xls");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandler.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandler.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/handler/WriteHandlerTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/ComplexDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/NoHeadData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/large/LargeData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/large/LargeDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeDataListener.java

10
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/large/LargeDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/large/LargeDataTest.java

@ -40,17 +40,17 @@ public class LargeDataTest {
@BeforeClass @BeforeClass
public static void init() { public static void init() {
fileFill07 = TestFileUtil.createNewFile("largefill07.xlsx"); fileFill07 = TestFileUtil.createNewFile("largefill07.xlsx");
fileWrite07 = TestFileUtil.createNewFile("large" + File.separator + "fileWrite07.xlsx"); fileWrite07 = TestFileUtil.createNewFile("easyexcel-test/test/resources/large" + File.separator + "fileWrite07.xlsx");
fileWriteTemp07 = TestFileUtil.createNewFile("large" + File.separator + "fileWriteTemp07.xlsx"); fileWriteTemp07 = TestFileUtil.createNewFile("easyexcel-test/test/resources/large" + File.separator + "fileWriteTemp07.xlsx");
fileWritePoi07 = TestFileUtil.createNewFile("large" + File.separator + "fileWritePoi07.xlsx"); fileWritePoi07 = TestFileUtil.createNewFile("easyexcel-test/test/resources/large" + File.separator + "fileWritePoi07.xlsx");
template07 = TestFileUtil.readFile("large" + File.separator + "fill.xlsx"); template07 = TestFileUtil.readFile("easyexcel-test/test/resources/large" + File.separator + "fill.xlsx");
fileCsv = TestFileUtil.createNewFile("largefileCsv.csv"); fileCsv = TestFileUtil.createNewFile("largefileCsv.csv");
} }
@Test @Test
public void t01Read() throws Exception { public void t01Read() throws Exception {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
EasyExcel.read(TestFileUtil.getPath() + "large" + File.separator + "large07.xlsx", LargeData.class, EasyExcel.read(TestFileUtil.getPath() + "easyexcel-test/test/resources/large" + File.separator + "large07.xlsx", LargeData.class,
new LargeDataListener()).headRowNumber(2).sheet().doRead(); new LargeDataListener()).headRowNumber(2).sheet().doRead();
LOGGER.info("Large data total time spent:{}", System.currentTimeMillis() - start); LOGGER.info("Large data total time spent:{}", System.currentTimeMillis() - start);
} }

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsData.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java

@ -26,8 +26,8 @@ public class MultipleSheetsDataTest {
@BeforeClass @BeforeClass
public static void init() { public static void init() {
file07 = TestFileUtil.readFile("multiplesheets" + File.separator + "multiplesheets.xlsx"); file07 = TestFileUtil.readFile("easyexcel-test/test/resources/multiplesheets" + File.separator + "multiplesheets.xlsx");
file03 = TestFileUtil.readFile("multiplesheets" + File.separator + "multiplesheets.xls"); file03 = TestFileUtil.readFile("easyexcel-test/test/resources/multiplesheets" + File.separator + "multiplesheets.xls");
} }
@Test @Test

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/nomodel/NoModelDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/nomodel/NoModelDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/noncamel/UnCamelDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataSheetNameListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataSheetNameListener.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataTest.java

@ -92,8 +92,8 @@ public class SimpleDataTest {
@Test @Test
public void t21SheetNameRead07() { public void t21SheetNameRead07() {
EasyExcel.read(TestFileUtil.readFile("simple" + File.separator + "simple07.xlsx"), SimpleData.class, EasyExcel.read(TestFileUtil.readFile("easyexcel-test/test/resources/simple" + File.separator + "simple07.xlsx"), SimpleData.class,
new SimpleDataSheetNameListener()).sheet("simple").doRead(); new SimpleDataSheetNameListener()).sheet("easyexcel-test/test/resources/simple").doRead();
} }
private void synchronousRead(File file) { private void synchronousRead(File file) {

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/skip/SkipData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/skip/SkipData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/skip/SkipDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/skip/SkipDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/sort/SortData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/sort/SortDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/sort/SortDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/sort/SortDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/style/StyleData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/style/StyleDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/template/TemplateData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataListener.java

4
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataTest.java

@ -41,14 +41,14 @@ public class TemplateDataTest {
private void readAndWrite07(File file) { private void readAndWrite07(File file) {
EasyExcel.write(file, TemplateData.class) EasyExcel.write(file, TemplateData.class)
.withTemplate(TestFileUtil.readFile("template" + File.separator + "template07.xlsx")).sheet() .withTemplate(TestFileUtil.readFile("easyexcel-test/test/resources/template" + File.separator + "template07.xlsx")).sheet()
.doWrite(data()); .doWrite(data());
EasyExcel.read(file, TemplateData.class, new TemplateDataListener()).headRowNumber(3).sheet().doRead(); EasyExcel.read(file, TemplateData.class, new TemplateDataListener()).headRowNumber(3).sheet().doRead();
} }
private void readAndWrite03(File file) { private void readAndWrite03(File file) {
EasyExcel.write(file, TemplateData.class) EasyExcel.write(file, TemplateData.class)
.withTemplate(TestFileUtil.readFile("template" + File.separator + "template03.xls")).sheet() .withTemplate(TestFileUtil.readFile("easyexcel-test/test/resources/template" + File.separator + "template03.xls")).sheet()
.doWrite(data()); .doWrite(data());
EasyExcel.read(file, TemplateData.class, new TemplateDataListener()).headRowNumber(3).sheet().doRead(); EasyExcel.read(file, TemplateData.class, new TemplateDataListener()).headRowNumber(3).sheet().doRead();
} }

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/fill/FillData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/fill/FillData.java

12
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/fill/FillTest.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/fill/FillTest.java

@ -36,7 +36,7 @@ public class FillTest {
public void simpleFill() { public void simpleFill() {
// 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替 // 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "simple.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "simple.xlsx";
// 方案1 根据对象填充 // 方案1 根据对象填充
String fileName = TestFileUtil.getPath() + "simpleFill" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "simpleFill" + System.currentTimeMillis() + ".xlsx";
@ -65,7 +65,7 @@ public class FillTest {
// 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替 // 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替
// 填充list 的时候还要注意 模板中{.} 多了个点 表示list // 填充list 的时候还要注意 模板中{.} 多了个点 表示list
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "list.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "list.xlsx";
// 方案1 一下子全部放到内存里面 并填充 // 方案1 一下子全部放到内存里面 并填充
String fileName = TestFileUtil.getPath() + "listFill" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "listFill" + System.currentTimeMillis() + ".xlsx";
@ -103,7 +103,7 @@ public class FillTest {
// 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替 // 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替
// {} 代表普通变量 {.} 代表是list的变量 // {} 代表普通变量 {.} 代表是list的变量
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "complex.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "complex.xlsx";
String fileName = TestFileUtil.getPath() + "complexFill" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "complexFill" + System.currentTimeMillis() + ".xlsx";
ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build(); ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();
@ -135,7 +135,7 @@ public class FillTest {
// {} 代表普通变量 {.} 代表是list的变量 // {} 代表普通变量 {.} 代表是list的变量
// 这里模板 删除了list以后的数据,也就是统计的这一行 // 这里模板 删除了list以后的数据,也就是统计的这一行
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "complexFillWithTable.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "complexFillWithTable.xlsx";
String fileName = TestFileUtil.getPath() + "complexFillWithTable" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "complexFillWithTable" + System.currentTimeMillis() + ".xlsx";
ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build(); ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();
@ -176,7 +176,7 @@ public class FillTest {
// 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替 // 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替
// {} 代表普通变量 {.} 代表是list的变量 // {} 代表普通变量 {.} 代表是list的变量
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "horizontal.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "horizontal.xlsx";
String fileName = TestFileUtil.getPath() + "horizontalFill" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "horizontalFill" + System.currentTimeMillis() + ".xlsx";
ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build(); ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();
@ -203,7 +203,7 @@ public class FillTest {
// 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替 // 模板注意 用{} 来表示你要用的变量 如果本来就有"{","}" 特殊字符 用"\{","\}"代替
// {} 代表普通变量 {.} 代表是list的变量 {前缀.} 前缀可以区分不同的list // {} 代表普通变量 {.} 代表是list的变量 {前缀.} 前缀可以区分不同的list
String templateFileName = String templateFileName =
TestFileUtil.getPath() + "demo" + File.separator + "fill" + File.separator + "composite.xlsx"; TestFileUtil.getPath() + "easyexcel-test/test/resources/demo" + File.separator + "fill" + File.separator + "composite.xlsx";
String fileName = TestFileUtil.getPath() + "compositeFill" + System.currentTimeMillis() + ".xlsx"; String fileName = TestFileUtil.getPath() + "compositeFill" + System.currentTimeMillis() + ".xlsx";
ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build(); ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/CellDataDemoHeadDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CellDataDemoHeadDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/CellDataReadDemoData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CellDataReadDemoData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/ConverterData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/ConverterData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/ConverterDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/ConverterDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/CustomStringStringConverter.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/CustomStringStringConverter.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoDAO.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoDAO.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoDataListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoExceptionListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExceptionListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraData.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraData.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoExtraListener.java

0
easyexcel-core/src/test/java/com/alibaba/easyexcel/test/demo/read/DemoHeadDataListener.java → easyexcel-test/test/java/com/alibaba/easyexcel/test/demo/read/DemoHeadDataListener.java

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save