////////////////////////////////////////////////////////////////////////////
/**
* Test for {@link MarginsConverter}.
*/
public void test_Converter() throws Exception {
ExpressionConverter converter = MarginsConverter.INSTANCE;
{
String expected = "(com.extjs.gxt.ui.client.util.Margins) null";
String actual = converter.toJavaSource(null, null);
assertEquals(expected, actual);
}
{
String expected = "new com.extjs.gxt.ui.client.util.Margins(1, 2, 3, 4)";
String actual = converter.toJavaSource(null, new Insets(1, 4, 3, 2));
assertEquals(expected, actual);
}
}