You need to sign in to do that
Don't have an account?
Ravichandra yerubandi
how pass data to @aura enabled method from test class
Hi,
i am writing test class to lightning apex controller i am passing values to parameter of @auraenabled method . i getting null pointer exception because in that method on string varible are written how to pass the values to @auraenabled method varibles from test class
can any one help?
i am writing test class to lightning apex controller i am passing values to parameter of @auraenabled method . i getting null pointer exception because in that method on string varible are written how to pass the values to @auraenabled method varibles from test class
can any one help?
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep
All Answers
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep
@AuraEnabled
public static id Savesupportform(Case casedata, String fileName, String base64Data, String contentType)
{
String NameVarible=username__c.Name;
}
In the above code how pass value to 'NameVarible' from test class.