|
@@ -2,6 +2,7 @@ package com.jfinal.template;
|
|
|
|
|
|
|
|
import org.junit.AfterClass;
|
|
import org.junit.AfterClass;
|
|
|
import org.junit.BeforeClass;
|
|
import org.junit.BeforeClass;
|
|
|
|
|
+import org.junit.Ignore;
|
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
|
import com.jfinal.kit.Kv;
|
|
import com.jfinal.kit.Kv;
|
|
|
|
|
|
|
@@ -19,11 +20,12 @@ public class SwitchTest {
|
|
|
public static void exit() {
|
|
public static void exit() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Ignore
|
|
|
@Test
|
|
@Test
|
|
|
public void switch_() {
|
|
public void switch_() {
|
|
|
Template template = engine.getTemplate("com/jfinal/template/switch.txt");
|
|
Template template = engine.getTemplate("com/jfinal/template/switch.txt");
|
|
|
- Kv kv = Kv.by("data", 123);
|
|
|
|
|
|
|
+ Kv kv = Kv.by("data", 123).set("b", 123);
|
|
|
String ret = template.renderToString(kv);
|
|
String ret = template.renderToString(kv);
|
|
|
- System.out.println(ret);
|
|
|
|
|
|
|
+ System.out.print(ret);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|