How do you use assertEquals in JUnit example?
assertEquals(obj1,obj2); String obj1=“Junit”; String obj2=“Junit”; As obj1, the assert statement above will return true. You have assertEquals(a,b), which uses the Object class’s equals() function. It will be graded as follows:… A suitable equality relation is determined using the class under test.