添加新的测试 JUnit 类

This commit is contained in:
YuCheng Hu 2018-12-26 17:53:11 -05:00
parent c8fada5726
commit d12dd975c0
1 changed files with 245 additions and 244 deletions

489
pom.xml
View File

@ -1,245 +1,246 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>com.ossez</groupId> <modelVersion>4.0.0</modelVersion>
<artifactId>codebank-algorithm</artifactId> <groupId>com.ossez</groupId>
<version>0.0.1</version> <artifactId>codebank-algorithm</artifactId>
<version>0.0.1</version>
<properties>
<!-- Generic properties --> <properties>
<java.version>1.8</java.version> <!-- Generic properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Logging -->
<slf4j.version>1.7.12</slf4j.version> <!-- Logging -->
<log4j2.version>2.2</log4j2.version> <slf4j.version>1.7.12</slf4j.version>
<log4j2.version>2.2</log4j2.version>
<!-- Hibernate / JPA -->
<hibernate.version>4.3.5.Final</hibernate.version> <!-- Hibernate / JPA -->
<hibernate.version>4.3.5.Final</hibernate.version>
<!-- Bean validation -->
<hibernate-validator.version>4.3.1.Final</hibernate-validator.version> <!-- Bean validation -->
<hibernate-validator.version>4.3.1.Final</hibernate-validator.version>
<!-- Database access -->
<tomcat-jdbc.version>7.0.42</tomcat-jdbc.version> <!-- Database access -->
<ehcache.version>2.6.8</ehcache.version> <tomcat-jdbc.version>7.0.42</tomcat-jdbc.version>
<hsqldb.version>2.3.2</hsqldb.version> <ehcache.version>2.6.8</ehcache.version>
<hsqldb.version>2.3.2</hsqldb.version>
<!-- Test -->
<junit.version>4.11</junit.version> <!-- CDN & CLOUD -->
<hamcrest.version>1.3</hamcrest.version> <jclouds.version>1.9.0</jclouds.version>
<!-- CDN & CLOUD --> </properties>
<jclouds.version>1.9.0</jclouds.version>
</properties> <dependencies>
<!-- LOG -->
<dependency>
<dependencies> <groupId>org.apache.logging.log4j</groupId>
<!-- LOG --> <artifactId>log4j-slf4j-impl</artifactId>
<dependency> <version>2.11.0</version>
<groupId>org.apache.logging.log4j</groupId> </dependency>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.11.0</version> <!-- TEST -->
</dependency> <dependency>
<groupId>junit</groupId>
<!-- APACHE COMMONS --> <artifactId>junit</artifactId>
<dependency> <version>4.12</version>
<groupId>org.apache.commons</groupId> </dependency>
<artifactId>commons-compress</artifactId>
<version>1.18</version>
</dependency> <!-- APACHE COMMONS -->
<dependency>
<dependency> <groupId>org.apache.commons</groupId>
<groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId>
<artifactId>commons-math3</artifactId> <version>1.18</version>
<version>3.6.1</version> </dependency>
</dependency>
<dependency>
<dependency> <groupId>org.apache.commons</groupId>
<groupId>antlr</groupId> <artifactId>commons-math3</artifactId>
<artifactId>antlr</artifactId> <version>3.6.1</version>
<version>2.7.6</version> </dependency>
</dependency>
<dependency>
<dependency> <groupId>antlr</groupId>
<groupId>dom4j</groupId> <artifactId>antlr</artifactId>
<artifactId>dom4j</artifactId> <version>2.7.6</version>
<version>1.6.1</version> </dependency>
</dependency>
<dependency> <dependency>
<groupId>commons-cli</groupId> <groupId>dom4j</groupId>
<artifactId>commons-cli</artifactId> <artifactId>dom4j</artifactId>
<version>1.2</version> <version>1.6.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.velocity</groupId> <groupId>commons-cli</groupId>
<artifactId>velocity-tools</artifactId> <artifactId>commons-cli</artifactId>
<version>2.0</version> <version>1.2</version>
</dependency> </dependency>
<dependency>
<dependency> <groupId>org.apache.velocity</groupId>
<groupId>jaxen</groupId> <artifactId>velocity-tools</artifactId>
<artifactId>jaxen</artifactId> <version>2.0</version>
<version>1.1.6</version> </dependency>
</dependency>
<dependency>
<dependency> <groupId>jaxen</groupId>
<groupId>javax.persistence</groupId> <artifactId>jaxen</artifactId>
<artifactId>persistence-api</artifactId> <version>1.1.6</version>
<version>1.0.2</version> </dependency>
</dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>javax.persistence</groupId>
<artifactId>guava</artifactId> <artifactId>persistence-api</artifactId>
<version>17.0</version> <version>1.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.gdata</groupId> <groupId>com.google.guava</groupId>
<artifactId>core</artifactId> <artifactId>guava</artifactId>
<version>1.47.1</version> <version>17.0</version>
</dependency> </dependency>
<dependency>
<dependency> <groupId>com.google.gdata</groupId>
<groupId>org.ow2.orchestra.eclipse.birt</groupId> <artifactId>core</artifactId>
<artifactId>org.ow2.orchestra.eclipse.birt.core</artifactId> <version>1.47.1</version>
<version>3.7.0</version> </dependency>
</dependency>
<dependency> <dependency>
<groupId>org.ow2.orchestra.eclipse.birt</groupId> <groupId>org.ow2.orchestra.eclipse.birt</groupId>
<artifactId>org.ow2.orchestra.eclipse.birt.report.engine</artifactId> <artifactId>org.ow2.orchestra.eclipse.birt.core</artifactId>
<version>3.7.0</version> <version>3.7.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-net</groupId> <groupId>org.ow2.orchestra.eclipse.birt</groupId>
<artifactId>commons-net</artifactId> <artifactId>org.ow2.orchestra.eclipse.birt.report.engine</artifactId>
<version>2.0</version> <version>3.7.0</version>
</dependency> </dependency>
<dependency>
<dependency> <groupId>commons-net</groupId>
<groupId>com.mchange</groupId> <artifactId>commons-net</artifactId>
<artifactId>mchange-commons-java</artifactId> <version>2.0</version>
<version>0.2.9</version> </dependency>
</dependency>
<dependency>
<dependency> <groupId>com.mchange</groupId>
<groupId>junit</groupId> <artifactId>mchange-commons-java</artifactId>
<artifactId>junit</artifactId> <version>0.2.9</version>
<version>4.12</version> </dependency>
</dependency>
<dependency>
<groupId>org.jasypt</groupId> <dependency>
<artifactId>jasypt</artifactId> <groupId>org.jasypt</groupId>
<version>1.5</version> <artifactId>jasypt</artifactId>
</dependency> <version>1.5</version>
</dependency>
<dependency>
<groupId>httpunit</groupId> <dependency>
<artifactId>httpunit</artifactId> <groupId>httpunit</groupId>
<version>1.7</version> <artifactId>httpunit</artifactId>
</dependency> <version>1.7</version>
<dependency> </dependency>
<groupId>net.sf.jazzy</groupId> <dependency>
<artifactId>jazzy</artifactId> <groupId>net.sf.jazzy</groupId>
<version>0.5.2-rtext-1.4.1</version> <artifactId>jazzy</artifactId>
</dependency> <version>0.5.2-rtext-1.4.1</version>
<dependency> </dependency>
<groupId>net.sf.json-lib</groupId> <dependency>
<artifactId>json-lib</artifactId> <groupId>net.sf.json-lib</groupId>
<version>2.4</version> <artifactId>json-lib</artifactId>
<classifier>jdk15</classifier> <version>2.4</version>
</dependency> <classifier>jdk15</classifier>
<dependency> </dependency>
<groupId>rome</groupId> <dependency>
<artifactId>rome</artifactId> <groupId>rome</groupId>
<version>0.9</version> <artifactId>rome</artifactId>
</dependency> <version>0.9</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId> <dependency>
<artifactId>httpmime</artifactId> <groupId>org.apache.httpcomponents</groupId>
<version>4.5.1</version> <artifactId>httpmime</artifactId>
</dependency> <version>4.5.1</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId> <dependency>
<artifactId>jsoup</artifactId> <groupId>org.jsoup</groupId>
<version>1.7.2</version> <artifactId>jsoup</artifactId>
</dependency> <version>1.7.2</version>
</dependency>
<dependency>
<groupId>net.lingala.zip4j</groupId> <dependency>
<artifactId>zip4j</artifactId> <groupId>net.lingala.zip4j</groupId>
<version>1.3.2</version> <artifactId>zip4j</artifactId>
</dependency> <version>1.3.2</version>
</dependency>
</dependencies>
</dependencies>
<build>
<defaultGoal>package</defaultGoal> <build>
<plugins> <defaultGoal>package</defaultGoal>
<plugin> <plugins>
<artifactId>maven-compiler-plugin</artifactId> <plugin>
<version>3.1</version> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <version>3.1</version>
<source>${java.version}</source> <configuration>
<target>${java.version}</target> <source>${java.version}</source>
</configuration> <target>${java.version}</target>
</plugin> </configuration>
<plugin> </plugin>
<groupId>org.apache.maven.plugins</groupId> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>2.12.4</version> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <version>2.12.4</version>
<skipTests>true</skipTests> <configuration>
</configuration> <skipTests>true</skipTests>
</plugin> </configuration>
<plugin> </plugin>
<groupId>org.apache.maven.plugins</groupId> <plugin>
<artifactId>maven-jar-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>2.6</version> <artifactId>maven-jar-plugin</artifactId>
<configuration> <version>2.6</version>
<archive> <configuration>
<manifest> <archive>
<mainClass>com.ossez.reoc.rets.Main</mainClass> <manifest>
<addClasspath>true</addClasspath> <mainClass>com.ossez.reoc.rets.Main</mainClass>
<classpathPrefix>lib/</classpathPrefix> <addClasspath>true</addClasspath>
</manifest> <classpathPrefix>lib/</classpathPrefix>
</archive> </manifest>
</configuration> </archive>
</configuration>
</plugin>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>2.6</version> <artifactId>maven-assembly-plugin</artifactId>
<executions> <version>2.6</version>
<executions>
<execution>
<phase>package</phase> <!-- bind to the packaging phase --> <execution>
<goals> <phase>package</phase> <!-- bind to the packaging phase -->
<goal>single</goal> <goals>
</goals> <goal>single</goal>
<configuration> </goals>
<descriptor>src/assembly/zipAssembly.xml</descriptor> <configuration>
<finalName>reoc-rets</finalName> <descriptor>src/assembly/zipAssembly.xml</descriptor>
<archive> <finalName>reoc-rets</finalName>
<manifest> <archive>
<mainClass>com.ossez.reoc.rets.Main</mainClass> <manifest>
</manifest> <mainClass>com.ossez.reoc.rets.Main</mainClass>
<manifestEntries> </manifest>
<Class-Path>./</Class-Path> <manifestEntries>
</manifestEntries> <Class-Path>./</Class-Path>
</archive> </manifestEntries>
</archive>
</configuration>
</execution> </configuration>
</executions> </execution>
</plugin> </executions>
</plugin>
</plugins>
</build> </plugins>
</build>
</project> </project>