arieslab/jnose

Fix Sensitive Equality

luana-martins opened this issue · 0 comments

**Description. ** Sensitive Equality (SE) occurs when the toString method is used within a test method. Test methods verify objects by invoking the default toString() method of the object and comparing the output against an specific string. Changes to the implementation of toString() might result in failure. The correct approach is to implement a custom method within the object to perform this comparison.

Detection: A test method invokes the toString() method of an object.

**Problem. ** The detection should indicate the line where the method toString() is being called.