Activity Forums Salesforce® Discussions What is .assertEquals() in Salesforce?

  • Ratnesh

    Member
    February 10, 2020 at 2:16 pm

    Hey Aditya,

    • It is used to validate two values are equal.
    • Basically it is used in test method.
  • Anjali

    Member
    February 10, 2020 at 2:21 pm

    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.

  • Kirandeep

    Member
    February 10, 2020 at 3:34 pm

    Hi Aditya,

    assertEquals() methods checks that the two values  are equals or not.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos