|
|
@ -28,8 +28,11 @@ public class RenderKitTest extends Prepare { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void render() throws Exception{ |
|
|
|
public void render() throws Exception{ |
|
|
|
Calculator c = Calculator.createCalculator(); |
|
|
|
Calculator c = Calculator.createCalculator(); |
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
map.put("p1",1); |
|
|
|
|
|
|
|
map.put("p2",2); |
|
|
|
String s = "abc${p1}xyz${p2}"; |
|
|
|
String s = "abc${p1}xyz${p2}"; |
|
|
|
Assert.assertEquals("abc1xyz2", RenderKit.render(s,c)); |
|
|
|
Assert.assertEquals("abcxyz", RenderKit.render(s,c)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|