Questions tagged [annotations]
The annotations tag has no usage guidance.
9
questions
0
votes
1
answer
196
views
Do mock classes need @IsTest?
Should mock classes always be annotated with @IsTest? Are the reasons not to annotate them?
The reason that I'm asking is that I stumbled upon a mock class with a custom constructor for testing that ...
0
votes
0
answers
43
views
Why do annotation parameters not use a comma as separator?
Looking at the official documentation for the annotation InvocableMethod we can see that the parameters - unlike other languages I know - do not use a comma as a separator for the parameters.
Any ...
-1
votes
1
answer
2k
views
Can I use multiple annotations on one apex method?
Can I use multiple annotations on one method as below? example @ReadOnly @HttpGet @TestVisible and etc
@ReadOnly
@HttpGet
global static void doGet() {
RestRequest req = RestContext.request;
...
0
votes
1
answer
349
views
Apex Deprecated Notice
Is there a good way to announce that the method of the apex class has been deprecated?
@deprecated is only available in managed packages, which allow other developers to see the cancellation line when ...
2
votes
1
answer
247
views
Will custom annotations be implemented someday?
So I know it's not possible that we create our own annotations at this point. I just wonder if this will be possible someday? Is it on a roadmap somewhere? Does somebody know something?
I would also ...
0
votes
1
answer
1k
views
can i use multiple annotations in one apex class
can i use multiple annotations in single apex class;
like i have the scenario of calling apex class from process builder which is having future method,suppose i am using setup objects and non-setup ...
0
votes
1
answer
14
views
how many $(symbol)annotations are there in salesforce Lighthing?
how many annotations are there in salesforce Lighthing? for example like :$A.enqueueAction(action). Can anyone tell me.
0
votes
1
answer
123
views
Inserting Data in Test With Annotation (See All Data=TRUE)
If I insert data in my test with (SeeAllData=True) will the data I create in the test remain in the org after the test?
2
votes
3
answers
2k
views
What more can we do with annotations in Apex?
Apex gives us many useful annotations (e.g. @AuraEnabled, @Future, @IsTest, @TestVisible, etc.)
Can we detect whether/how a class has been annotated?
Is it possible for us to create our annotations?...