Skip to content

Instantly share code, notes, and snippets.

@Mycoola
Created June 15, 2023 18:25
Show Gist options
  • Save Mycoola/b44b30d09a7ecaac80a06cc68bd31f12 to your computer and use it in GitHub Desktop.
Save Mycoola/b44b30d09a7ecaac80a06cc68bd31f12 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
@isTest
public class TaskUtilityTest
{
@isTest static void testGetTaskPriority()
{
String priority=TaskUtility.getTaskPriority('AU');
System.assertEquals('Normal', priority);
}
@isTest static void testTaskHighPriority()
{
String priority=TaskUtility.getTaskPriority('US');
System.assertEquals('High', priority);
}
@isTest static void testTaskPriorityInvalid()
{
String priority=TaskUtility.getTaskPriority('idfdf');
System.assertEquals(null, priority);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment