+ Start a Discussion
m 3m 3 

write a test class below code with using system.assertequals

* Controller class for C_Header component
public without sharing class C_HeaderCntl {
    public static String getContactTypeDetail(){
        return C_Utilities.getContactTypeDetail();
public class C_HeaderCntlTest {
    public static void testGetContactTypeDetail() {
        System.assertEquals('[EXPECTED_VALUE]', C_HeaderCntl.getContactTypeDetail());
If this resolves your query, kindly mark it as the best answer.