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

@ -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");