I have to write an unit test in java, and was wondering what is the difference between .isEqualTo and .equals.
Here is an example of my code:
mockLog.message(0).header(SOURCE_HEADER).isEqualTo("String");
VS
mockLog.message(0).header(SOURCE_HEADER).equals("String");
It seems that both is giving me the right information, but my colleague and I was wondering what's the difference between them.