BAEL-2981: Added header for tests and formatted pom.xml

This commit is contained in:
isaolmez 2019-06-17 22:41:32 +03:00
parent 1de5fc5a0d
commit 684bc16314
5 changed files with 101 additions and 81 deletions

View File

@ -1,86 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>libraries2</artifactId> <artifactId>libraries2</artifactId>
<name>libraries2</name> <name>libraries2</name>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>parent-modules</artifactId> <artifactId>parent-modules</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
</parent> </parent>
<repositories> <repositories>
<repository> <repository>
<id>jboss-public-repository-group</id> <id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name> <name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url> <url>http://repository.jboss.org/nexus/content/groups/public/</url>
<releases> <releases>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</releases> </releases>
<snapshots> <snapshots>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>daily</updatePolicy> <updatePolicy>daily</updatePolicy>
</snapshots> </snapshots>
</repository> </repository>
</repositories> </repositories>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.assertj</groupId> <groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId> <artifactId>assertj-core</artifactId>
<version>${assertj.version}</version> <version>${assertj.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.github.classgraph</groupId> <groupId>io.github.classgraph</groupId>
<artifactId>classgraph</artifactId> <artifactId>classgraph</artifactId>
<version>${classgraph.version}</version> <version>${classgraph.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jbpm</groupId> <groupId>org.jbpm</groupId>
<artifactId>jbpm-test</artifactId> <artifactId>jbpm-test</artifactId>
<version>${jbpm.version}</version> <version>${jbpm.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>info.picocli</groupId> <groupId>info.picocli</groupId>
<artifactId>picocli</artifactId> <artifactId>picocli</artifactId>
<version>${picocli.version}</version> <version>${picocli.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId> <artifactId>spring-boot-starter</artifactId>
<version>${spring-boot-starter.version}</version> <version>${spring-boot-starter.version}</version>
</dependency> </dependency>
<!-- Dependencies for response decoder with okhttp --> <!-- Dependencies for response decoder with okhttp -->
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId> <artifactId>okhttp</artifactId>
<version>3.14.2</version> <version>3.14.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>2.9.9</version> <version>2.9.9</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.5</version> <version>2.8.5</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId> <artifactId>mockwebserver</artifactId>
<version>3.14.2</version> <version>3.14.2</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>edu.uci.ics</groupId> <groupId>edu.uci.ics</groupId>
<artifactId>crawler4j</artifactId> <artifactId>crawler4j</artifactId>
@ -92,14 +92,14 @@
<artifactId>handlebars</artifactId> <artifactId>handlebars</artifactId>
<version>4.1.2</version> <version>4.1.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<assertj.version>3.6.2</assertj.version> <assertj.version>3.6.2</assertj.version>
<classgraph.version>4.8.28</classgraph.version> <classgraph.version>4.8.28</classgraph.version>
<jbpm.version>6.0.0.Final</jbpm.version> <jbpm.version>6.0.0.Final</jbpm.version>
<picocli.version>3.9.6</picocli.version> <picocli.version>3.9.6</picocli.version>
<crawler4j.version>4.4.0</crawler4j.version> <crawler4j.version>4.4.0</crawler4j.version>
<spring-boot-starter.version>2.1.4.RELEASE</spring-boot-starter.version> <spring-boot-starter.version>2.1.4.RELEASE</spring-boot-starter.version>
</properties> </properties>
</project> </project>

View File

@ -11,6 +11,11 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.junit.Test; import org.junit.Test;
/**
* Showcases the tag usage and different template loading mechanisms.
*
* @author isaolmez
*/
public class BasicUsageUnitTest { public class BasicUsageUnitTest {
@Test @Test

View File

@ -9,6 +9,11 @@ import com.github.jknack.handlebars.io.TemplateLoader;
import java.io.IOException; import java.io.IOException;
import org.junit.Test; import org.junit.Test;
/**
* Showcases the built-in template helpers.
*
* @author isaolmez
*/
public class BuiltinHelperUnitTest { public class BuiltinHelperUnitTest {
private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html"); private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html");

View File

@ -11,6 +11,11 @@ import com.github.jknack.handlebars.io.TemplateLoader;
import java.io.IOException; import java.io.IOException;
import org.junit.Test; import org.junit.Test;
/**
* Showcases implementing a custom template helper.
*
* @author isaolmez
*/
public class CustomHelperUnitTest { public class CustomHelperUnitTest {
private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html"); private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html");

View File

@ -9,6 +9,11 @@ import com.github.jknack.handlebars.io.TemplateLoader;
import java.io.IOException; import java.io.IOException;
import org.junit.Test; import org.junit.Test;
/**
* Showcases reusing the existing templates.
*
* @author isaolmez
*/
public class ReusingTemplatesUnitTest { public class ReusingTemplatesUnitTest {
private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html"); private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html");