You need to sign in to do that
Don't have an account?
prem kumar 71
How to write test class to the (current date.month)
hi to all,
i am new in salesforce.
how can i write the test class to the below code
if(currentDate.month() >= 1 && currentDate.month() < 4){
code
} else if(currentDate.month() >= 4 && currentDate.month() < 7){
code
}
i am new in salesforce.
how can i write the test class to the below code
if(currentDate.month() >= 1 && currentDate.month() < 4){
code
} else if(currentDate.month() >= 4 && currentDate.month() < 7){
code
}
Amit Chaudhary 8
You can use the Test.IsRunningTest() in your Apex class.
I hope that will help you