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
VenkataRajaVenkataRaja 

Test class on abstract class.

Hi
I have             
public abstract class A
{
          public Task newTask;
          public void createT(Id caseId, Id accountId)
          {
                  newTask = new Task();
                  //Intializing the values for task here.

                  methodX();
                  methodY();
            }
        
          public abstract void methodX();
          public abstract void methodY();
}

I need test class on this.

Please send any links or how to cover code coverage on this. It will help lot.

Thanks
Venkat
MagulanDuraipandianMagulanDuraipandian
Write the test class for the extended class

If this solves your problem, kindly mark it as the best answer.
Hit Like, if it saved your work :-)

Regards,
Magulan
http://www.infallibletechie.com
MagulanDuraipandianMagulanDuraipandian
http://www.infallibletechie.com/2014/04/test-class-for-abstract-class-in.html

Check this too.

If this solves your problem, kindly mark it as the best answer.
Hit Like, if it saved your work :-)

Regards,
Magulan
http://www.infallibletechie.com