@cparra/apex-reflection 2.4.1 → 2.6.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.
@@ -253,6 +253,18 @@ describe('Class reflection', () => {
253
253
  expect(result.methods[1].name).toBe('method2');
254
254
  });
255
255
 
256
+ test('Can have virtual methods', () => {
257
+ const classBody = `
258
+ public with sharing class MyClass {
259
+ public virtual String method1() {
260
+ return '';
261
+ }
262
+ }
263
+ `;
264
+ const result = (reflect(classBody)).typeMirror as ClassMirror;
265
+ expect(result.methods[0].memberModifiers[0]).toBe('virtual');
266
+ });
267
+
256
268
  test('Can have inner enums', () => {
257
269
  const classBody = `
258
270
  public with sharing class MyClass {