mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline velocity
This commit is contained in:
@@ -42,4 +42,12 @@ public class SimpleTemplatesTest extends LightPlatformTestCase {
|
||||
attributes.setProperty("IJ_BASE_PACKAGE", "foo.bar");
|
||||
assertEquals("<option name=\"MAIN_CLASS_NAME\" value=\"foo.bar.Main\" />", template.getText(attributes));
|
||||
}
|
||||
|
||||
public void testInline() throws Exception {
|
||||
CustomFileTemplate template = new CustomFileTemplate("foo", "bar");
|
||||
template.setText("$IJ_BASE_PACKAGE.replace(\".\", \"/\")");
|
||||
Properties attributes = new Properties();
|
||||
attributes.setProperty("IJ_BASE_PACKAGE", "foo.bar");
|
||||
assertEquals("foo/bar", template.getText(attributes));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user