Activity Forums Salesforce® Discussions Whats is difference between system.assert and system.assertEquals in salesforce?

  • Whats is difference between system.assert and system.assertEquals in salesforce?

    Posted by Manish on July 27, 2020 at 4:43 pm

    Whats is difference between system.assert and system.assertEquals in salesforce?

    Pooja replied 4 years, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Anuj

    Member
    July 27, 2020 at 5:01 pm

    System. assert take two parameters, first is the condition to check and second the msg to log if the condition is true. Whereas, System. assertEquals take three parameters first two are the values to compare and the third one to log msg.

  • Pooja

    Member
    July 27, 2020 at 7:42 pm

    The main difference is <b style="font-family: inherit; font-size: inherit;">System. <b style="font-family: inherit; font-size: inherit;">assert take two parameters, first is the condition to check and second the msg to log if the condition is true. Whereas, <b style="font-family: inherit; font-size: inherit;">System. <b style="font-family: inherit; font-size: inherit;">assertEquals take three parameters first two are the values to compare and the third one to log msg.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos