You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "Alonexc (via GitHub)" <gi...@apache.org> on 2023/03/22 07:56:04 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #3509: [Enhancement] Swap these 2 arguments so they are in the correct order: expected value, actual value.[ RedisPropertiesTest]

Alonexc opened a new issue, #3509:
URL: https://github.com/apache/incubator-eventmesh/issues/3509

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   ![image](https://user-images.githubusercontent.com/91315508/226835299-4133e827-27b7-4b6d-9dcd-7264345dfd7c.png)
   ![image](https://user-images.githubusercontent.com/91315508/226835307-778ba382-0b38-41db-9dbe-bb903ae88415.png)
   located at:
   eventmesh-storage/eventmesh-storage-redis/src/test/java/org/apache/eventmesh/storage/redis/config/RedisPropertiesTest.java line 37-39,45
   analysis and explanation:
   The standard assertions library methods such as org.junit.Assert.assertEquals, and org.junit.Assert.assertSame expect the first argument to be the expected value and the second argument to be the actual value. For AssertJ, it’s the other way around, the argument of org.assertj.core.api.Assertions.assertThat is the actual value, and the subsequent calls contain the expected values. Swap them, and your test will still have the same outcome (succeed/fail when it should) but the error messages will be confusing.
   
   
   ### Describe the solution you'd like
   
   Swap actual and expected values.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: issues-unsubscribe@eventmesh.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


[GitHub] [eventmesh] xwm1992 closed issue #3509: [Enhancement] Swap these 2 arguments so they are in the correct order: expected value, actual value.[RedisPropertiesTest]

Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 closed issue #3509: [Enhancement] Swap these 2 arguments so they are in the correct order: expected value, actual value.[RedisPropertiesTest]
URL: https://github.com/apache/eventmesh/issues/3509


-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org