Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 4 weeks ago

What is Assert.assertEquals() in Java?

2 Answers

Relevance
  • Anonymous
    4 weeks ago
    • Login to reply the answers
  • Anonymous
    4 weeks ago

    Assert class affords a set of declaration methods beneficial for writing tests. ... assertEquals strategies checks that the two objects are equals or not. If they are not, an AssertionError besides a message is thrown. Incase if both expected and actual values are null, then this approach returns equal.

    • Login to reply the answers
Still have questions? Get your answers by asking now.