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
CageMMACageMMA 

Test Method ???

Hi everyone:

   How do I call this or test this method out in my test class:

 

public String getCountry() {
        return countryName;
    }

 

 

Thanks

 

hisrinuhisrinu

If there is a normal method then you can call that method with the help of instance of this class.

 

As this is a property all you need to do is set a value for your property this will automatically call the getter method if not the you can explictly call as instance.getCountry();