@AuraEnabled
public static Integer generateRandomString() {
try{
return Math.round((Math.random() * (900000) + 100000));
}
catch (Exception e)
{
throw e;
}
}
Post Closed as "Duplicate" by glls, kurunve, Derek F, Girbot, identigral
- How do I write an Apex unit test?
- How do I increase my code coverage, or why can't I cover these lines?