This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
public class TaskUtilityTest | |
{ | |
@isTest static void testGetTaskPriority() | |
{ | |
String priority=TaskUtility.getTaskPriority('AU'); | |
System.assertEquals('Normal', priority); | |
} | |
@isTest static void testTaskHighPriority() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TaskUtility | |
{ | |
public static String getTaskPriority(String leadCountry) | |
{ | |
if(String.isBlank(leadCountry)||leadCountry.length()>2) | |
{ | |
return null; | |
} | |
String taskPriority; |
OlderNewer