public void testSetConstructorArguments()
{
int i = javaEnum.getMethods().size();
javaEnum.addMethod().setConstructor(true).setParameters("int n, String s");
assertEquals("int", javaEnum.getMethods().get(i).getParameters().get(0).getType().getName());
EnumConstantSource foo = javaEnum.getEnumConstant("FOO");
assertTrue(foo.getConstructorArguments().isEmpty());
foo.setConstructorArguments("666", "null");
assertEquals(2, foo.getConstructorArguments().size());
assertEquals("666", foo.getConstructorArguments().get(0));
assertEquals("null", foo.getConstructorArguments().get(1));
foo.setConstructorArguments((String[]) null);
assertTrue(foo.getConstructorArguments().isEmpty());
foo.setConstructorArguments("0", "\"foo\"");
assertEquals(2, foo.getConstructorArguments().size());
assertEquals("0", foo.getConstructorArguments().get(0));
assertEquals("\"foo\"", foo.getConstructorArguments().get(1));
foo.setConstructorArguments();
assertTrue(foo.getConstructorArguments().isEmpty());
}