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
Nishad BashaNishad Basha 

How to write the Test class for based on Apex class?

can you plase give me the example of above scenario please give some ideas.
Amit Chaudhary 8Amit Chaudhary 8
Please check below below post for test clas. I hope that will help you
http://amitsalesforce.blogspot.in/2015/06/best-practice-for-test-classes-sample.html

Please check below post for Test util class example 
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_utility_classes.htm
https://developer.salesforce.com/trailhead/apex_testing/apex_testing_data

Example
@IsTest
public class TestUtil {
  public static void createTestAccounts() {
    // Create some test accounts
  }
  public static void createTestContacts() {
    // Create some test contacts
  }
}

Please lets us know if this will help you

Thanks
Amit Chaudhary
Nishad BashaNishad Basha

Hi, Amit Chaudhary 

 i need give the example one apex class that related test class .plase give one example so far.