You need to sign in to do that
Don't have an account?
Mikhail Nitko 6
I am new. How do I write a test class for this?
Hi folks,
I'm new to writing test classes and have put together a simple, working apex class but am not sure how to test it.
I am currently working through the Trailhead and am still confused.
How would I write a test for the following?:
I'm new to writing test classes and have put together a simple, working apex class but am not sure how to test it.
I am currently working through the Trailhead and am still confused.
How would I write a test for the following?:
public class studentQueueUMB { List<Case> walkin; public List<Case> getWalkin(){ walkin = [SELECT Display_Name__c, Display_Screen_Suffix__c FROM Case WHERE Origin = 'Walk-in' and Status != 'Closed' and Remove_From_Screen__c = FALSE ORDER BY CreatedDate ASC NULLS FIRST LIMIT 10]; return walkin; } }Thank you!
Check out my first, original test class:
Aint she a beauty?