You need to sign in to do that
Don't have an account?
sumit d
test class for SocialCaseNotificationController
Hi All,
how to write the test class for the given class:-
public class SocialCaseNotificationsController {
public SocialCaseNotificationsController() {
}
public List<Case> getlistAccount() {
Id userId = UserInfo.getUserId();
return [SELECT Id, CaseNumber,
Status
FROM Case
WHERE (Status = 'Subsq Reopened – Biz Hours'
OR Status = 'Subsq Reopened – Non-Biz Hours')
AND OwnerId =: userId
ORDER By lastModifiedDate DESC];
}
public PageReference refresh() {
getlistAccount();
return null;
}
}
Any suggestions?
how to write the test class for the given class:-
public class SocialCaseNotificationsController {
public SocialCaseNotificationsController() {
}
public List<Case> getlistAccount() {
Id userId = UserInfo.getUserId();
return [SELECT Id, CaseNumber,
Status
FROM Case
WHERE (Status = 'Subsq Reopened – Biz Hours'
OR Status = 'Subsq Reopened – Non-Biz Hours')
AND OwnerId =: userId
ORDER By lastModifiedDate DESC];
}
public PageReference refresh() {
getlistAccount();
return null;
}
}
Any suggestions?
Parden me.
Actually the Question is this:-https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=OPENQUESTIONS&id=9062I000000g3WTQAY
try something like below, refer below for more details,
https://trailhead.salesforce.com/en/content/learn/modules/apex_testing/apex_testing_intro
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_test.htm
regards
Actually the Question is given link this:-https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=OPENQUESTIONS&id=9062I000000g3WTQAY