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