Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 protected void setUp() {
   unit = fact.newClass("Test");
   ASClassType clazz = (ASClassType) unit.getType();
   field = clazz.newField("test", Visibility.PUBLIC, "Bar");
 }