assertEquals(tokenizer.nextToken(), "Test");
}
public void testComplexReplacement ()
{
MessageFormatSupport support = new MessageFormatSupport();
support.setFormatString("$(null,number,integer), $(dummy), $(null,date), $(null,number,integer)");
SimpleDataRow sdr = new SimpleDataRow();
sdr.add("null", null);
sdr.add("dummy", "Content");
String text = support.performFormat(sdr);
assertEquals("Expected content w/o nullString", "<null>, Content, <null>, <null>", text);
System.out.println(text);
support.setNullString("-");
String ntext = support.performFormat(sdr);
assertEquals("Expected content w nullString", "-, Content, -, -",ntext);
System.out.println(ntext);
}