Thymeleaf-tasting. Test thymeleaf file with fragments

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Thymeleaf-tasting. Test thymeleaf file with fragments

Ruslan
Hi everyone!

I try to write test for thymeleaf template, that contains different fragments. But unsuccessfull.

Example:
HTML template:

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="~{fragments/head :: head(title='test')}"/>

<body>
</body>
</html>

Fragment:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <title>${title}</title>
</head>
</html>

Test file:
%TEMPLATE_MODE HTML5
# ------------------------------------------
%INPUT
(file:src/main/resources/templates/email/test2.html)
# ------------------------------------------
%FRAGMENT
(file:src/main/resources/templates/fragments/head.html)
#--------------------------------------------
%OUTPUT
<!DOCTYPE html>
<html lang="en">

<head>
     <meta charset="UTF-8">
        <title>test</title>
</head>

<body>
</body>
</html>

But I have error message:
"C:\Program Files\Java\jdk1.8.0_162\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\lib\idea_rt.jar=65236:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\plugins\junit\lib\junit-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\plugins\junit\lib\junit5-rt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_162\jre\lib\rt.jar;D:\java_workspace\WileyPlus4\wileyplus-notifications\notifications\target\test-classes;D:\java_workspace\WileyPlus4\wileyplus-notifications\notifications\target\classes;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter-web\1.5.4.RELEASE\spring-boot-starter-web-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter\1.5.4.RELEASE\spring-boot-starter-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.5.4.RELEASE\spring-boot-starter-logging-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;C:\Users\rmakarov\.m2\repository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;C:\Users\rmakarov\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;C:\Users\rmakarov\.m2\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;C:\Users\rmakarov\.m2\repository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;C:\Users\rmakarov\.m2\repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.5.4.RELEASE\spring-boot-starter-tomcat-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.15\tomcat-embed-core-8.5.15.jar;C:\Users\rmakarov\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.15\tomcat-embed-el-8.5.15.jar;C:\Users\rmakarov\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.15\tomcat-embed-websocket-8.5.15.jar;C:\Users\rmakarov\.m2\repository\org\hibernate\hibernate-validator\5.3.5.Final\hibernate-validator-5.3.5.Final.jar;C:\Users\rmakarov\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\rmakarov\.m2\repository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;C:\Users\rmakarov\.m2\repository\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar;C:\Users\rmakarov\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.8\jackson-databind-2.8.8.jar;C:\Users\rmakarov\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;C:\Users\rmakarov\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.8\jackson-core-2.8.8.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-web\4.3.9.RELEASE\spring-web-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-webmvc\4.3.9.RELEASE\spring-webmvc-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-expression\4.3.9.RELEASE\spring-expression-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\security\spring-security-config\4.2.3.RELEASE\spring-security-config-4.2.3.RELEASE.jar;C:\Users\rmakarov\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\rmakarov\.m2\repository\org\springframework\security\spring-security-core\4.2.3.RELEASE\spring-security-core-4.2.3.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-aop\4.3.9.RELEASE\spring-aop-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-beans\4.3.9.RELEASE\spring-beans-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-context\4.3.9.RELEASE\spring-context-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-core\4.3.9.RELEASE\spring-core-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;C:\Users\rmakarov\.m2\repository\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;C:\Users\rmakarov\.m2\repository\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;C:\Users\rmakarov\.m2\repository\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;C:\Users\rmakarov\.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\rmakarov\.m2\repository\org\glassfish\javax.json\1.1\javax.json-1.1.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-devtools\1.5.4.RELEASE\spring-boot-devtools-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot\1.5.4.RELEASE\spring-boot-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.5.4.RELEASE\spring-boot-autoconfigure-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter-test\1.5.4.RELEASE\spring-boot-starter-test-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-test\1.5.4.RELEASE\spring-boot-test-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\1.5.4.RELEASE\spring-boot-test-autoconfigure-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\rmakarov\.m2\repository\org\assertj\assertj-core\2.6.0\assertj-core-2.6.0.jar;C:\Users\rmakarov\.m2\repository\org\mockito\mockito-core\1.10.19\mockito-core-1.10.19.jar;C:\Users\rmakarov\.m2\repository\org\objenesis\objenesis\2.1\objenesis-2.1.jar;C:\Users\rmakarov\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\rmakarov\.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\rmakarov\.m2\repository\org\skyscreamer\jsonassert\1.4.0\jsonassert-1.4.0.jar;C:\Users\rmakarov\.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-test\4.3.9.RELEASE\spring-test-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\boot\spring-boot-starter-mail\1.5.4.RELEASE\spring-boot-starter-mail-1.5.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\springframework\spring-context-support\4.3.9.RELEASE\spring-context-support-4.3.9.RELEASE.jar;C:\Users\rmakarov\.m2\repository\com\sun\mail\javax.mail\1.5.6\javax.mail-1.5.6.jar;C:\Users\rmakarov\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\rmakarov\.m2\repository\org\codehaus\janino\janino\3.0.7\janino-3.0.7.jar;C:\Users\rmakarov\.m2\repository\org\codehaus\janino\commons-compiler\3.0.7\commons-compiler-3.0.7.jar;C:\Users\rmakarov\.m2\repository\org\thymeleaf\thymeleaf\3.0.11.RELEASE\thymeleaf-3.0.11.RELEASE.jar;C:\Users\rmakarov\.m2\repository\ognl\ognl\3.1.12\ognl-3.1.12.jar;C:\Users\rmakarov\.m2\repository\org\javassist\javassist\3.21.0-GA\javassist-3.21.0-GA.jar;C:\Users\rmakarov\.m2\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\thymeleaf\thymeleaf-spring4\3.0.11.RELEASE\thymeleaf-spring4-3.0.11.RELEASE.jar;C:\Users\rmakarov\.m2\repository\org\thymeleaf\thymeleaf-testing\3.0.4.RELEASE\thymeleaf-testing-3.0.4.RELEASE.jar;C:\Users\rmakarov\.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk\1.11.200\aws-java-sdk-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-mobile\1.11.200\aws-java-sdk-mobile-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\jmespath-java\1.11.200\jmespath-java-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudhsmv2\1.11.200\aws-java-sdk-cloudhsmv2-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-glue\1.11.200\aws-java-sdk-glue-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-migrationhub\1.11.200\aws-java-sdk-migrationhub-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-dax\1.11.200\aws-java-sdk-dax-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-greengrass\1.11.200\aws-java-sdk-greengrass-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-athena\1.11.200\aws-java-sdk-athena-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-marketplaceentitlement\1.11.200\aws-java-sdk-marketplaceentitlement-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-codestar\1.11.200\aws-java-sdk-codestar-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-lexmodelbuilding\1.11.200\aws-java-sdk-lexmodelbuilding-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-resourcegroupstaggingapi\1.11.200\aws-java-sdk-resourcegroupstaggingapi-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-pinpoint\1.11.200\aws-java-sdk-pinpoint-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-xray\1.11.200\aws-java-sdk-xray-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-opsworkscm\1.11.200\aws-java-sdk-opsworkscm-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-support\1.11.200\aws-java-sdk-support-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-simpledb\1.11.200\aws-java-sdk-simpledb-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-servicecatalog\1.11.200\aws-java-sdk-servicecatalog-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-servermigration\1.11.200\aws-java-sdk-servermigration-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-simpleworkflow\1.11.200\aws-java-sdk-simpleworkflow-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-storagegateway\1.11.200\aws-java-sdk-storagegateway-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-route53\1.11.200\aws-java-sdk-route53-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-s3\1.11.200\aws-java-sdk-s3-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-importexport\1.11.200\aws-java-sdk-importexport-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-sts\1.11.200\aws-java-sdk-sts-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-sqs\1.11.200\aws-java-sdk-sqs-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-rds\1.11.200\aws-java-sdk-rds-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-redshift\1.11.200\aws-java-sdk-redshift-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elasticbeanstalk\1.11.200\aws-java-sdk-elasticbeanstalk-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-glacier\1.11.200\aws-java-sdk-glacier-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-iam\1.11.200\aws-java-sdk-iam-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-datapipeline\1.11.200\aws-java-sdk-datapipeline-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elasticloadbalancing\1.11.200\aws-java-sdk-elasticloadbalancing-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elasticloadbalancingv2\1.11.200\aws-java-sdk-elasticloadbalancingv2-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-emr\1.11.200\aws-java-sdk-emr-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elasticache\1.11.200\aws-java-sdk-elasticache-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elastictranscoder\1.11.200\aws-java-sdk-elastictranscoder-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-ec2\1.11.200\aws-java-sdk-ec2-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-dynamodb\1.11.200\aws-java-sdk-dynamodb-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-sns\1.11.200\aws-java-sdk-sns-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-budgets\1.11.200\aws-java-sdk-budgets-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudtrail\1.11.200\aws-java-sdk-cloudtrail-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudwatch\1.11.200\aws-java-sdk-cloudwatch-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-logs\1.11.200\aws-java-sdk-logs-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-events\1.11.200\aws-java-sdk-events-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cognitoidentity\1.11.200\aws-java-sdk-cognitoidentity-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cognitosync\1.11.200\aws-java-sdk-cognitosync-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-directconnect\1.11.200\aws-java-sdk-directconnect-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudformation\1.11.200\aws-java-sdk-cloudformation-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudfront\1.11.200\aws-java-sdk-cloudfront-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-clouddirectory\1.11.200\aws-java-sdk-clouddirectory-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-kinesis\1.11.200\aws-java-sdk-kinesis-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-opsworks\1.11.200\aws-java-sdk-opsworks-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-ses\1.11.200\aws-java-sdk-ses-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-autoscaling\1.11.200\aws-java-sdk-autoscaling-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudsearch\1.11.200\aws-java-sdk-cloudsearch-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudwatchmetrics\1.11.200\aws-java-sdk-cloudwatchmetrics-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-codedeploy\1.11.200\aws-java-sdk-codedeploy-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-codepipeline\1.11.200\aws-java-sdk-codepipeline-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-kms\1.11.200\aws-java-sdk-kms-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-config\1.11.200\aws-java-sdk-config-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-lambda\1.11.200\aws-java-sdk-lambda-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-ecs\1.11.200\aws-java-sdk-ecs-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-ecr\1.11.200\aws-java-sdk-ecr-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cloudhsm\1.11.200\aws-java-sdk-cloudhsm-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-ssm\1.11.200\aws-java-sdk-ssm-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-workspaces\1.11.200\aws-java-sdk-workspaces-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-machinelearning\1.11.200\aws-java-sdk-machinelearning-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-directory\1.11.200\aws-java-sdk-directory-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-efs\1.11.200\aws-java-sdk-efs-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-codecommit\1.11.200\aws-java-sdk-codecommit-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-devicefarm\1.11.200\aws-java-sdk-devicefarm-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-elasticsearch\1.11.200\aws-java-sdk-elasticsearch-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-waf\1.11.200\aws-java-sdk-waf-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-marketplacecommerceanalytics\1.11.200\aws-java-sdk-marketplacecommerceanalytics-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-inspector\1.11.200\aws-java-sdk-inspector-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-iot\1.11.200\aws-java-sdk-iot-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-api-gateway\1.11.200\aws-java-sdk-api-gateway-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-acm\1.11.200\aws-java-sdk-acm-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-gamelift\1.11.200\aws-java-sdk-gamelift-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-dms\1.11.200\aws-java-sdk-dms-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-marketplacemeteringservice\1.11.200\aws-java-sdk-marketplacemeteringservice-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-cognitoidp\1.11.200\aws-java-sdk-cognitoidp-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-discovery\1.11.200\aws-java-sdk-discovery-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-applicationautoscaling\1.11.200\aws-java-sdk-applicationautoscaling-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-snowball\1.11.200\aws-java-sdk-snowball-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-rekognition\1.11.200\aws-java-sdk-rekognition-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-polly\1.11.200\aws-java-sdk-polly-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-lightsail\1.11.200\aws-java-sdk-lightsail-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-stepfunctions\1.11.200\aws-java-sdk-stepfunctions-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-health\1.11.200\aws-java-sdk-health-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-costandusagereport\1.11.200\aws-java-sdk-costandusagereport-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-codebuild\1.11.200\aws-java-sdk-codebuild-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-appstream\1.11.200\aws-java-sdk-appstream-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-shield\1.11.200\aws-java-sdk-shield-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-batch\1.11.200\aws-java-sdk-batch-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-lex\1.11.200\aws-java-sdk-lex-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-mechanicalturkrequester\1.11.200\aws-java-sdk-mechanicalturkrequester-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-organizations\1.11.200\aws-java-sdk-organizations-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-workdocs\1.11.200\aws-java-sdk-workdocs-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-core\1.11.200\aws-java-sdk-core-1.11.200.jar;C:\Users\rmakarov\.m2\repository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\rmakarov\.m2\repository\org\apache\httpcomponents\httpclient\4.5.3\httpclient-4.5.3.jar;C:\Users\rmakarov\.m2\repository\org\apache\httpcomponents\httpcore\4.4.6\httpcore-4.4.6.jar;C:\Users\rmakarov\.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\rmakarov\.m2\repository\software\amazon\ion\ion-java\1.0.2\ion-java-1.0.2.jar;C:\Users\rmakarov\.m2\repository\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.8.8\jackson-dataformat-cbor-2.8.8.jar;C:\Users\rmakarov\.m2\repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-models\1.11.200\aws-java-sdk-models-1.11.200.jar;C:\Users\rmakarov\.m2\repository\com\amazonaws\aws-java-sdk-swf-libraries\1.11.22\aws-java-sdk-swf-libraries-1.11.22.jar;C:\Users\rmakarov\.m2\repository\org\apache\commons\commons-lang3\3.7\commons-lang3-3.7.jar;C:\Users\rmakarov\.m2\repository\commons-io\commons-io\2.3\commons-io-2.3.jar" com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.wiley.wpng.app.email.thymeleaf.ThymeleafTemplateTests,testTest
[2018-12-20 10:50:22][NS3O92][main] [EXECUTION:START]
[2018-12-20 10:50:22][NS3O92][main] [test:end][D:\java_workspace\WileyPlus4\wileyplus-notifications\notifications\src\test\java\com\wiley\wpng\app\email\thymeleaf\test.thtest-001][339861082][KO] Test FAILED: Actual result does not match expected result.
[2018-12-20 10:50:22][NS3O92][main] [test:end][D:\java_workspace\WileyPlus4\wileyplus-notifications\notifications\src\test\java\com\wiley\wpng\app\email\thymeleaf\test.thtest-001][339861082][KO] Test FAILED: Actual result does not match expected result.
Obtained:
Obtained:
[]
[]

at line 1 col 1, but expected:
at line 1 col 1, but expected:

[<!DOCTYPE html>
[<!DOCTYPE html>
<html lang="en">
<html lang="en">



<head>
<head>     <meta charset="UTF-8">
     <meta charset="UTF-8">

        <ti] Time: 339861082ns (339ms).
        <ti] Time: 339861082ns (339ms).
[2018-12-20 10:50:22][NS3O92][main] [EXECUTION:END][0][1][339861082] Tests OK: 0 of 1 (FAILED: 1). Sequence executed in 339861082ns (339ms)

java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at com.wiley.wpng.app.email.thymeleaf.ThymeleafTemplateTests.testTest(ThymeleafTemplateTests.java:28)
	........

What am I doing wrong?
To tell you the truth, I do not quite understand how to use parameter %FRAGMENT