assertTranslatesVariable("${z}", "<span class=\"meta\">undefined variable: z</span>");
assertTranslatesVariable("${}", "${}");
}
private void assertTranslatesVariable(String variable, String expected) throws Exception {
WikiPage pageOne = new TestRoot().makePage("PageOne", "!define x {y}\n" + variable);
ParserTestHelper.assertTranslatesTo(pageOne,
"<span class=\"meta\">variable defined: x=y</span>" + HtmlElement.endl +
ParserTestHelper.newLineRendered + expected);
}