You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/08/21 14:02:25 UTC

[GitHub] [ignite] cawatson commented on issue #6746: IGNITE-12038 Fix failing tests.

cawatson commented on issue #6746: IGNITE-12038 Fix failing tests.
URL: https://github.com/apache/ignite/pull/6746#issuecomment-523470994
 
 
   I am creating a tool to aid developers by partially automating unit testing.
   Could you speak to the validity of these generated assert statement for the given test method?
   All test methods come from the file: modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgnitePdsCacheWalDisabledOnRebalancingTest.java
   
   Test Method: testClientJoinsLeavesDuringRebalancing
   Assert Statement(s):
   `org . junit . Assert . assertEquals ( false , CacheGroupMetricsImpl . fillCache ( ) )`
   `org . junit . Assert . assertEquals ( false , CacheGroupMetricsImpl . getCommunicationSpi ( ) )`
   `org . junit . Assert . assertEquals ( true , CacheGroupMetricsImpl . fillCache ( ) )`
   
   Test Method: testServerNodesFromBltLeavesAndJoinsDuringRebalancing
   Assert Statement(s):
   `org . junit . Assert . assertEquals ( 4 , count . getLocalNodeMovingPartitionsCount ( ) )`
   `org . junit . Assert . assertTrue ( ( ( count . getLocalNodeMovingPartitionsCount ( ) ) == 1 ) )`
   `org . junit . Assert . assertTrue ( ( ( count . getLocalNodeMovingPartitionsCount ( ) ) == 2 ) )`
   
   Test Method: testRebalancedPartitionsOwningWithConcurrentAffinityChange
   Assert Statement(s):
   `org.junit.Assert.assertTrue((( locMovingPartsNum . getLocalNodeMovingPartitionsCount ( ) ) > 0 ) )`
   `org.junit.Assert.assertTrue((( locMovingPartsNum . getLocalNodeMovingPartitionsCount ( ) ) < 1 ) )`
   `org.junit.Assert.assertTrue((( locMovingPartsNum . getLocalNodeMovingPartitionsCount ( ) ) == 1 ) )`
   
   Thank you for your time.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services