Polishing
This commit is contained in:
parent
0611192dac
commit
01ceee8de5
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue