@cparra/apex-reflection 2.6.0 → 2.7.1

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.
@@ -257,7 +257,7 @@ describe('Class reflection', () => {
257
257
  const classBody = `
258
258
  public with sharing class MyClass {
259
259
  public virtual String method1() {
260
- return '';
260
+ return null ?? '';
261
261
  }
262
262
  }
263
263
  `;
@@ -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 {