freemarker.report-test Maven / Gradle / Ivy
package ${testPackage};
import java.io.FileNotFoundException;
import java.io.IOException;
import net.sf.ahtutils.report.exception.ReportException;
import net.sf.ahtutils.test.AbstractAhtUtilsReportTest;
import net.sf.exlp.util.exception.ExlpXpathNotFoundException;
import net.sf.exlp.util.exception.ExlpXpathNotUniqueException;
import org.junit.Before;
import org.junit.Test;
import org.junit.Ignore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ${classname} extends AbstractAhtUtilsReportTest
{
final static Logger logger = LoggerFactory.getLogger(TestReportRenderer.class);
@Before
public void initExample() throws ExlpXpathNotFoundException, ExlpXpathNotUniqueException, FileNotFoundException, ReportException
{
initHandler();
initExample("${reportId}");
}
@Ignore
@Test
public void emptyPages() throws ExlpXpathNotFoundException, ExlpXpathNotUniqueException, ReportException, IOException
{
createPdf();
writePdf();
assertEmptyPage(pdf.toByteArray());
}
public static void main(String[] args) throws ExlpXpathNotFoundException, ExlpXpathNotUniqueException, ReportException, IOException
{
initLogger();
${classname} test = new ${classname}();
test.initHandler();
test.initExample("${reportId}");
test.createPdf();
test.writePdf();
}
}