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
a!a! 

please write the testmethod for this

public with sharing class ChangeOwner {
    public String getQ() {
        return null;
    }


    public String getPUL() {
        return null;
    }

}

 

thanking you in advance

SamuelDeRyckeSamuelDeRycke

What is so difficult about that, have you made any attempt yourself ?

 

@isTest
static void testChangeOwner(){
 ChangeOwner co = new ChangeOwner();

 system.assertEquals(null, co.getQ());
 system.assertEquals(null,co.getPUL());
}

 

Should work as far as my coding knowledge goes.