Polishing

This commit is contained in:
Sam Brannen 2023-07-15 13:35:51 +02:00
parent 0611192dac
commit 01ceee8de5
1 changed files with 4 additions and 4 deletions

View File

@ -41,10 +41,10 @@ import static org.junit.jupiter.api.condition.JRE.JAVA_21;
* @author Sebastien Deleuze * @author Sebastien Deleuze
*/ */
@DisabledForJreRange(min = JAVA_21, disabledReason = "Kotlin doesn't support Java 21+ yet") @DisabledForJreRange(min = JAVA_21, disabledReason = "Kotlin doesn't support Java 21+ yet")
public class KotlinScriptTemplateTests { class KotlinScriptTemplateTests {
@Test @Test
public void renderTemplateWithFrenchLocale() throws Exception { void renderTemplateWithFrenchLocale() throws Exception {
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
model.put("foo", "Foo"); model.put("foo", "Foo");
String url = "org/springframework/web/reactive/result/view/script/kotlin/template.kts"; String url = "org/springframework/web/reactive/result/view/script/kotlin/template.kts";
@ -53,7 +53,7 @@ public class KotlinScriptTemplateTests {
} }
@Test @Test
public void renderTemplateWithEnglishLocale() throws Exception { void renderTemplateWithEnglishLocale() throws Exception {
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
model.put("foo", "Foo"); model.put("foo", "Foo");
String url = "org/springframework/web/reactive/result/view/script/kotlin/template.kts"; String url = "org/springframework/web/reactive/result/view/script/kotlin/template.kts";
@ -62,7 +62,7 @@ public class KotlinScriptTemplateTests {
} }
@Test @Test
public void renderTemplateWithoutRenderFunction() throws Exception { void renderTemplateWithoutRenderFunction() throws Exception {
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
model.put("header", "<html><body>"); model.put("header", "<html><body>");
model.put("hello", "Hello"); model.put("hello", "Hello");