1 package freemarker.eclipse.test; 2 3 import freemarker.eclipse.editors.InterpolationRule; 4 5 11 public class InterpolationRuleTest extends AbstractRuleTestCase { 12 13 public InterpolationRuleTest(String name) { 14 super(name); 15 } 16 17 public void setUp() { 18 super.addNonMatchingTest("foobar","Testing non-matching token"); 19 super.addMatchingTest("${test}foobar",7,"Testing simple interpolation"); 20 super.addMatchingTest("${test?default(\"{foo}\")}foobar",24,"Testing complex interpolation"); 21 super.addMatchingTest("${{\"foo\" : \"bar\",'bar':{'foo':1}}[key]}foobar",39,"Testing hash literal inside interpolation"); 22 super.rule = new InterpolationRule(MATCH); 23 } 24 } 25 | Popular Tags |