Activity Forums Salesforce® Discussions What is the purpose of System.assertEquals() in salesforce?

  • What is the purpose of System.assertEquals() in salesforce?

    Posted by Ayush on April 30, 2020 at 8:52 am

    What is the purpose of System.assertEquals() in salesforce?

    Marziya replied 4 years ago 2 Members · 1 Reply
  • 1 Reply
  • Marziya

    Member
    April 30, 2020 at 11:26 am

    System. assertEquals() is used to validate two values are equal. Basically it is used in test method. This method asserts that the first two arguments, x and y are the same, if they are not a runtime exception is thrown.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos