Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3da5ee7

Browse files
committed
update
1 parent ac0aee0 commit 3da5ee7

File tree

5 files changed

+25
-3
lines changed
  • pom.xml
  • src
    • main/java/com/coderdream/util
      • Constants.java
    • test
      • java/com/coderdream
        • gensql/service
          • GenSqlServiceTest.java
        • util/mail
          • MailUtilTest.java
      • resources
        • Data13.xlsx

5 files changed

+25
-3
lines changed

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<artifactId>mailartifactId>
107107
<version>1.4.7version>
108108
dependency>
109-
109+
110110
<dependency>
111111
<groupId>com.microsoft.sqlservergroupId>
112112
<artifactId>sqljdbc4artifactId>
@@ -135,6 +135,13 @@
135135
<repoToken>yourcoverallsprojectrepositorytokenrepoToken>
136136
configuration>
137137
plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.pluginsgroupId>
140+
<artifactId>maven-surefire-pluginartifactId>
141+
<configuration>
142+
<skip>trueskip>
143+
configuration>
144+
plugin>
138145
plugins>
139146
pluginManagement>
140147
build>

src/main/java/com/coderdream/util/Constants.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ public class Constants {
66

77
public static String TABLE_STRUCTURE_FILE_NAME = "TableStructure.xlsx";
88

9-
public static String DATA_FILE_NAME = "AutoTest.xlsx";
9+
// public static String DATA_FILE_NAME = "AutoTest.xlsx";
10+
11+
public static String DATA_FILE_NAME = "Data13.xlsx";
1012

1113
public static String EXCAVATOR_FILE_NAME = "Wa Jue Ji .xlsx";
1214

src/test/java/com/coderdream/gensql/service/GenSqlServiceTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ public void testGenSqlScriptList_06() {
105105
String charsetName = "GBK";
106106
GenSqlService.genSqlScriptFile(path, sheetName, idFlag, sqlFilePath, charsetName);
107107
}
108+
109+
@Test
110+
public void testGenSqlScriptList_08() {
111+
logger.debug(Common.PROCESSING + fileFolder);
112+
String fileName = Constants.DATA_FILE_NAME;
113+
String sheetName = "PDRC_Profile";
114+
String path = fileFolder + fileName;
115+
String sqlFileName = sheetName + ".sql";
116+
String sqlFilePath = fileFolder + sqlFileName;
117+
// Shi Fou Zi Dong Sheng Cheng ID
118+
Boolean idFlag = true;
119+
String charsetName = "GBK";
120+
GenSqlService.genSqlScriptFile(path, sheetName, idFlag, sqlFilePath, charsetName);
121+
}
108122

109123
@Test
110124
public void testGenSqlScriptFileTotal_01() {

src/test/java/com/coderdream/util/mail/MailUtilTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import javax.mail.MessagingException;
1010

11-
import org.apache.poi.ss.formula.functions.T;
1211
import org.junit.Test;
1312
import org.slf4j.Logger;
1413
import org.slf4j.LoggerFactory;

src/test/resources/Data13.xlsx

48.5 KB
Binary file not shown.

0 commit comments

Comments
(0)