String expected = "<tr><th><label for='id_prefix-subject'>Subject</label></th><td><input id=\"id_prefix-subject\" type=\"text\" name=\"prefix-subject\" value=\"hello\" /></td></tr>\n" +
"<tr><th><label for='id_prefix-message'>Message</label></th><td><input id=\"id_prefix-message\" type=\"text\" name=\"prefix-message\" value=\"Hi there\" /></td></tr>\n" +
"<tr><th><label for='id_prefix-sender'>Sender</label></th><td><input id=\"id_prefix-sender\" type=\"text\" name=\"prefix-sender\" value=\"foo@example.com\" /></td></tr>\n" +
"<tr><th><label for='id_prefix-ccMyself'>Cc Myself</label></th><td><input id=\"id_prefix-ccMyself\" type=\"checkbox\" name=\"prefix-ccMyself\" checked=\"checked\" /></td></tr>\n" +
"<tr><th><label for='id_prefix-value'>Value</label></th><td><input id=\"id_prefix-value\" type=\"text\" name=\"prefix-value\" value=\"1234\" /></td></tr>\n";
assertEquals(expected, f.asTable());
}
public void testNoPrefixHtml() throws Exception {
Map<String, String[]> m = new HashMap<String, String[]>();
m.put("subject", new String[] {"hello"});