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
SoundarSoundar 

How can i cover a boolean in test class

Dear friends,

How can i cover following line in test class.

Public Boolean isShowOpp {get;set;}   //  This line is not covering in the test class.

Thanks in advance.

Regards,
Soundar Raj
SoundarSoundar
Yeah ... thank God finally i found  a slution (it's too easy step onle).

ClassName cls = New ClassName();
cls.fieldName=true;
 

it's coverd in test class...

Regards,
Soundar raj.