Skip to content

Commit 9051fed

Browse files
lcampossfsholden
authored andcommitted
fix: revert back to using with sharing on Apex (#276)
@W-8926389@
1 parent 7b76bca commit 9051fed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/plugin-templates/test/commands/force/apex/class/create.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Apex class creation tests:', () => {
3636
assert.file(['foo.cls', 'foo.cls-meta.xml']);
3737
assert.fileContent(
3838
path.join(process.cwd(), 'foo.cls'),
39-
'public inherited sharing class foo'
39+
'public with sharing class foo'
4040
);
4141
}
4242
);
@@ -104,7 +104,7 @@ describe('Apex class creation tests:', () => {
104104
]);
105105
assert.fileContent(
106106
path.join('classes create', 'foo.cls'),
107-
'public inherited sharing class foo'
107+
'public with sharing class foo'
108108
);
109109
}
110110
);

packages/templates/src/templates/apexclass/DefaultApexClass.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public inherited sharing class <%= apiName %> {
1+
public with sharing class <%= apiName %> {
22
public <%= apiName %>() {
33

44
}

packages/templates/test/service/templateService.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('TemplateService', () => {
4848
'LibraryCreateClass.cls'
4949
);
5050
const expectedApexClassContent =
51-
'public inherited sharing class LibraryCreateClass';
51+
'public with sharing class LibraryCreateClass';
5252
const expectedApexClassMetaPath = path.join(
5353
'testsoutput',
5454
'libraryCreate',

0 commit comments

Comments
 (0)