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
Srinu@dreamsSrinu@dreams 

Is it possible to write test class inside controller?

HariDineshHariDinesh

Hi,

 

Yes we can write test class in side class(main class).

 

You can specify like @isTest Annotation and methods will be declared as testmethod.