Comparing only fields does not work with List Of Objects. It is passed without error, although mismatch is present #2994
Labels
theme: recursive comparison
An issue related to the recursive comparison
Milestone
Comparing only fields does not work with List Of Objects. It is passed without error, although mismatch is present.
//sample class
public class Student {
String name;
String subject;
int rollNo;
}
Add a test case showing the bug that we can run
//Test class
public class AssertTest {
}
It should throw an error on 'name' property because of mismatch on first object.
The text was updated successfully, but these errors were encountered: