function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.