Browse Source

修改测试案例

developing
Jiaju Zhuang 5 years ago
parent
commit
773109cfd4
  1. 4
      src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataTest.java
  2. 4
      src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataTest.java
  3. 4
      src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityDataTest.java
  4. 2
      src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityParameterDataTest.java
  5. 12
      src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataTest.java
  6. 4
      src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataTest.java
  7. 4
      src/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadDataTest.java
  8. 4
      src/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataTest.java
  9. 4
      src/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataTest.java
  10. 2
      src/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataTest.java
  11. 8
      src/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataTest.java
  12. 10
      src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataTest.java
  13. 8
      src/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java
  14. 4
      src/test/java/com/alibaba/easyexcel/test/core/template/TemplateDataTest.java

4
src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataTest.java

@ -27,12 +27,12 @@ public class AnnotationDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() throws Exception { public void t01ReadAndWrite07() throws Exception {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() throws Exception { public void t02ReadAndWrite03() throws Exception {
readAndWrite(file03); readAndWrite(file03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataTest.java

@ -27,12 +27,12 @@ public class AnnotationIndexAndNameDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityDataTest.java

@ -42,12 +42,12 @@ public class CompatibilityDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() throws Exception { public void t01ReadAndWrite07() throws Exception {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() throws Exception { public void t02ReadAndWrite03() throws Exception {
readAndWrite(file03); readAndWrite(file03);
} }

2
src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityParameterDataTest.java

@ -31,7 +31,7 @@ public class CompatibilityParameterDataTest {
} }
@Test @Test
public void T01ReadAndWrite() throws Exception { public void t01ReadAndWrite() throws Exception {
readAndWrite1(file); readAndWrite1(file);
readAndWrite2(file); readAndWrite2(file);
readAndWrite3(file); readAndWrite3(file);

12
src/test/java/com/alibaba/easyexcel/test/core/converter/ConverterDataTest.java

@ -38,12 +38,12 @@ public class ConverterDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() throws Exception { public void t01ReadAndWrite07() throws Exception {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() throws Exception { public void t02ReadAndWrite03() throws Exception {
readAndWrite(file03); readAndWrite(file03);
} }
@ -53,22 +53,22 @@ public class ConverterDataTest {
} }
@Test @Test
public void T03ReadAllConverter07() { public void t03ReadAllConverter07() {
readAllConverter("converter" + File.separator + "converter07.xlsx"); readAllConverter("converter" + File.separator + "converter07.xlsx");
} }
@Test @Test
public void T04ReadAllConverter03() { public void t04ReadAllConverter03() {
readAllConverter("converter" + File.separator + "converter03.xls"); readAllConverter("converter" + File.separator + "converter03.xls");
} }
@Test @Test
public void T05WriteImage07() throws Exception { public void t05WriteImage07() throws Exception {
writeImage(fileImage07); writeImage(fileImage07);
} }
@Test @Test
public void T06WriteImage03() throws Exception { public void t06WriteImage03() throws Exception {
writeImage(fileImage03); writeImage(fileImage03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/exception/ExceptionDataTest.java

@ -31,12 +31,12 @@ public class ExceptionDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() throws Exception { public void t01ReadAndWrite07() throws Exception {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() throws Exception { public void t02ReadAndWrite03() throws Exception {
readAndWrite(file03); readAndWrite(file03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/head/ComplexHeadDataTest.java

@ -26,12 +26,12 @@ public class ComplexHeadDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/head/ListHeadDataTest.java

@ -28,12 +28,12 @@ public class ListHeadDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() throws Exception { public void t01ReadAndWrite07() throws Exception {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() throws Exception { public void t02ReadAndWrite03() throws Exception {
readAndWrite(file03); readAndWrite(file03);
} }

4
src/test/java/com/alibaba/easyexcel/test/core/head/NoHeadDataTest.java

@ -26,12 +26,12 @@ public class NoHeadDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }

2
src/test/java/com/alibaba/easyexcel/test/core/parameter/ParameterDataTest.java

@ -35,7 +35,7 @@ public class ParameterDataTest {
} }
@Test @Test
public void T01ReadAndWrite() throws Exception { public void t01ReadAndWrite() throws Exception {
readAndWrite1(); readAndWrite1();
readAndWrite2(); readAndWrite2();
readAndWrite3(); readAndWrite3();

8
src/test/java/com/alibaba/easyexcel/test/core/repetition/RepetitionDataTest.java

@ -38,12 +38,12 @@ public class RepetitionDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }
@ -57,12 +57,12 @@ public class RepetitionDataTest {
} }
@Test @Test
public void T03ReadAndWriteTable07() { public void t03ReadAndWriteTable07() {
readAndWriteTable(fileTable07); readAndWriteTable(fileTable07);
} }
@Test @Test
public void T04ReadAndWriteTable03() { public void t04ReadAndWriteTable03() {
readAndWriteTable(fileTable03); readAndWriteTable(fileTable03);
} }

10
src/test/java/com/alibaba/easyexcel/test/core/simple/SimpleDataTest.java

@ -30,12 +30,12 @@ public class SimpleDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }
@ -45,17 +45,17 @@ public class SimpleDataTest {
} }
@Test @Test
public void T03SynchronousRead07() { public void t03SynchronousRead07() {
synchronousRead(file07); synchronousRead(file07);
} }
@Test @Test
public void T04SynchronousRead03() { public void t04SynchronousRead03() {
synchronousRead(file03); synchronousRead(file03);
} }
@Test @Test
public void T05SheetNameRead07() { public void t05SheetNameRead07() {
EasyExcel.read(TestFileUtil.readFile("simple" + File.separator + "simple07.xlsx"), SimpleData.class, EasyExcel.read(TestFileUtil.readFile("simple" + File.separator + "simple07.xlsx"), SimpleData.class,
new SimpleDataSheetNameListener()).sheet("simple").doRead(); new SimpleDataSheetNameListener()).sheet("simple").doRead();
} }

8
src/test/java/com/alibaba/easyexcel/test/core/style/StyleDataTest.java

@ -44,17 +44,17 @@ public class StyleDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite(file07); readAndWrite(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite(file03); readAndWrite(file03);
} }
@Test @Test
public void T03AbstractVerticalCellStyleStrategy() { public void t03AbstractVerticalCellStyleStrategy() {
AbstractVerticalCellStyleStrategy verticalCellStyleStrategy = new AbstractVerticalCellStyleStrategy() { AbstractVerticalCellStyleStrategy verticalCellStyleStrategy = new AbstractVerticalCellStyleStrategy() {
@Override @Override
protected WriteCellStyle headCellStyle(Head head) { protected WriteCellStyle headCellStyle(Head head) {
@ -112,7 +112,7 @@ public class StyleDataTest {
} }
@Test @Test
public void T04LoopMergeStrategy() { public void t04LoopMergeStrategy() {
EasyExcel.write(file07, StyleData.class).sheet().registerWriteHandler(new LoopMergeStrategy(2, 1)) EasyExcel.write(file07, StyleData.class).sheet().registerWriteHandler(new LoopMergeStrategy(2, 1))
.doWrite(data10()); .doWrite(data10());
} }

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

@ -29,12 +29,12 @@ public class TemplateDataTest {
} }
@Test @Test
public void T01ReadAndWrite07() { public void t01ReadAndWrite07() {
readAndWrite07(file07); readAndWrite07(file07);
} }
@Test @Test
public void T02ReadAndWrite03() { public void t02ReadAndWrite03() {
readAndWrite03(file03); readAndWrite03(file03);
} }

Loading…
Cancel
Save