public void testConstSerialisation() throws IOException { field.setConst(true); field.setName("renamed"); unit = CodeMirror.assertReflection(fact, unit); field = ((ASClassType) unit.getType()).getField("renamed"); assertNotNull(field); assertTrue(field.isConst()); }
protected void setUp() { unit = fact.newClass("Test"); ASClassType clazz = (ASClassType) unit.getType(); field = clazz.newField("test", Visibility.PUBLIC, "Bar"); }