@cparra/apex-reflection 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,6 +265,18 @@ describe('Class reflection', () => {
265
265
  expect(result.methods[0].memberModifiers[0]).toBe('virtual');
266
266
  });
267
267
 
268
+ test('Can have abstract methods', () => {
269
+ const classBody = `
270
+ public with sharing abstract class MyClass {
271
+ public abstract String method1() {
272
+ return null ?? '';
273
+ }
274
+ }
275
+ `;
276
+ const result = (reflect(classBody)).typeMirror as ClassMirror;
277
+ expect(result.methods[0].memberModifiers[0]).toBe('abstract');
278
+ });
279
+
268
280
  test('Can have inner enums', () => {
269
281
  const classBody = `
270
282
  public with sharing class MyClass {