In main project for testing code

This commit is contained in:
YuCheng Hu 2020-04-13 00:59:19 -04:00
parent b2ff0a17f1
commit 260af3d71f
9 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>zip-with-dependencies</id>
<formats>
<format>zip</format>
</formats>
<files>
<file>
<source>target/${project.artifactId}-${project.version}.jar</source>
<outputDirectory>./</outputDirectory>
<destName>${project.artifactId}.jar</destName>
</file>
</files>
<dependencySets>
<dependencySet>
<outputDirectory>lib/</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>

View File

@ -0,0 +1,8 @@
package com.ossez.reoc;
/**
* @author YuCheng Hu
*/
public class Utility {
}

View File

@ -0,0 +1,5 @@
# RABBIT (RabbitProperties)
spring.rabbitmq.dynamic=true
spring.rabbitmq.host=mq.ossez.com
spring.rabbitmq.password=Lucas#1120
spring.rabbitmq.username=admin

View File

@ -0,0 +1,7 @@
hibernate.connection.driver_class = com.mysql.jdbc.Driver
hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.connection.url=jdbc\:mysql\://db-ossez/
hibernate.connection.username=ossez.com
hibernate.connection.password=**
hibernate.jdbc.batch_size = 20
hibernate.cache.use_second_level_cache = false

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="true">
<appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned by default the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="debug">
<appender-ref ref="STDOUT"/>
</root>
</configuration>

View File

@ -0,0 +1,6 @@
Jill,Doe
Joe,Doe
Justin,Doe
Jane,Doe
John,Doe
YuCheng,HU
1 Jill Doe
2 Joe Doe
3 Justin Doe
4 Jane Doe
5 John Doe
6 YuCheng HU

View File

@ -0,0 +1,7 @@
DROP TABLE people IF EXISTS;
CREATE TABLE people (
person_id BIGINT IDENTITY NOT NULL PRIMARY KEY,
first_name VARCHAR(20),
last_name VARCHAR(20)
);

View File

@ -0,0 +1,15 @@
package com.ossez.covid19.tests;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
public class FunctionTest {
@Test
public void testNumber() {
BigDecimal bd = new BigDecimal(999);
}
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="true">
<appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned by default the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="debug">
<appender-ref ref="STDOUT"/>
</root>
</configuration>