diff --git a/test/jte-runtime-cp-test-gradle-convention/src/test/java/gg/jte/TemplateEngineTest.java b/test/jte-runtime-cp-test-gradle-convention/src/test/java/gg/jte/TemplateEngineTest.java index 3c4a0396..d75c49da 100644 --- a/test/jte-runtime-cp-test-gradle-convention/src/test/java/gg/jte/TemplateEngineTest.java +++ b/test/jte-runtime-cp-test-gradle-convention/src/test/java/gg/jte/TemplateEngineTest.java @@ -64,7 +64,7 @@ void params() { @Test void paramWithWrongType() { Throwable throwable = catchThrowable(() -> templateEngine.render("helloWorld.jte", TemplateUtils.toMap("model", "string"), output)); - assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:0"); + assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:1"); } private void whenTemplateIsRendered(String templateName) { diff --git a/test/jte-runtime-cp-test-gradle-kotlin-convention/src/test/kotlin/test/TemplateEngineTest.kt b/test/jte-runtime-cp-test-gradle-kotlin-convention/src/test/kotlin/test/TemplateEngineTest.kt index a9a5ae06..4a25e078 100644 --- a/test/jte-runtime-cp-test-gradle-kotlin-convention/src/test/kotlin/test/TemplateEngineTest.kt +++ b/test/jte-runtime-cp-test-gradle-kotlin-convention/src/test/kotlin/test/TemplateEngineTest.kt @@ -93,7 +93,7 @@ class TemplateEngineTest { @Test internal fun paramWithWrongType() { val exception = assertThrows { templateEngine.render("helloWorld.kte", TemplateUtils.toMap("model", "string"), output) } - assertTrue(exception.message!!.contains("Failed to render helloWorld.kte, error at helloWorld.kte:0")) + assertTrue(exception.message!!.contains("Failed to render helloWorld.kte, error at helloWorld.kte:1")) } private fun whenTemplateIsRendered(templateName: String) { diff --git a/test/jte-runtime-cp-test-gradle-kotlin/src/test/kotlin/test/TemplateEngineTest.kt b/test/jte-runtime-cp-test-gradle-kotlin/src/test/kotlin/test/TemplateEngineTest.kt index 12f32000..9368975f 100644 --- a/test/jte-runtime-cp-test-gradle-kotlin/src/test/kotlin/test/TemplateEngineTest.kt +++ b/test/jte-runtime-cp-test-gradle-kotlin/src/test/kotlin/test/TemplateEngineTest.kt @@ -61,7 +61,7 @@ class TemplateEngineTest { @Test internal fun paramWithWrongType() { val exception = assertThrows { templateEngine.render("helloWorld.kte", TemplateUtils.toMap("model", "string"), output) } - assertTrue(exception.message!!.contains("Failed to render helloWorld.kte, error at helloWorld.kte:0")) + assertTrue(exception.message!!.contains("Failed to render helloWorld.kte, error at helloWorld.kte:1")) } private fun whenTemplateIsRendered(templateName: String) { diff --git a/test/jte-runtime-cp-test-gradle/src/test/java/gg/jte/TemplateEngineTest.java b/test/jte-runtime-cp-test-gradle/src/test/java/gg/jte/TemplateEngineTest.java index 3c4a0396..d75c49da 100644 --- a/test/jte-runtime-cp-test-gradle/src/test/java/gg/jte/TemplateEngineTest.java +++ b/test/jte-runtime-cp-test-gradle/src/test/java/gg/jte/TemplateEngineTest.java @@ -64,7 +64,7 @@ void params() { @Test void paramWithWrongType() { Throwable throwable = catchThrowable(() -> templateEngine.render("helloWorld.jte", TemplateUtils.toMap("model", "string"), output)); - assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:0"); + assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:1"); } private void whenTemplateIsRendered(String templateName) { diff --git a/test/jte-runtime-cp-test/src/test/java/gg/jte/TemplateEngineTest.java b/test/jte-runtime-cp-test/src/test/java/gg/jte/TemplateEngineTest.java index 3c4a0396..d75c49da 100644 --- a/test/jte-runtime-cp-test/src/test/java/gg/jte/TemplateEngineTest.java +++ b/test/jte-runtime-cp-test/src/test/java/gg/jte/TemplateEngineTest.java @@ -64,7 +64,7 @@ void params() { @Test void paramWithWrongType() { Throwable throwable = catchThrowable(() -> templateEngine.render("helloWorld.jte", TemplateUtils.toMap("model", "string"), output)); - assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:0"); + assertThat(throwable).isInstanceOf(TemplateException.class).hasMessageContaining("Failed to render helloWorld.jte, error at helloWorld.jte:1"); } private void whenTemplateIsRendered(String templateName) {