tkobayas commented on PR #7283:
URL: https://github.com/apache/incubator-kie/pull/7283#issuecomment-6905049177

   @Subhanshu20135 In `BaseJobResourceTest` and `BaseKeycloakJobServiceTest`, 
`assertThat(response).isEqualTo(job);` fails because `response` is an instance 
of `ScheduledJob` and `job` is `Job`. 
   
   `ScheduledJob.equals(Object)` requires `o instanceof ScheduledJob`, so 
`response.equals(job)` returns `false`. Before the migration, JUnit's 
`assertEquals(job, response)` called `job.equals(response)`, which evaluated to 
`true`.
   
   Please change it to:
   ```java
   assertThat(job).isEqualTo(response);
   ```
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to