Skip to content

Commit

Permalink
HSEARCH-3816 Sonar: Assertion arguments should be passed in the corre…
Browse files Browse the repository at this point in the history
…ct order
  • Loading branch information
yrodiere committed Jan 27, 2020
1 parent bbabef5 commit 40e6e03
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -81,7 +81,7 @@ public void distance_flattenedDocument() {
.sort( f -> f.field( "ordinal" ).desc() )
.fetchAllHits();

assertEquals( hits.size(), 3 );
assertEquals( 3, hits.size() );
checkResult( hits.get( 0 ), 164d, Offset.offset( 10d ) );
checkResult( hits.get( 1 ), 1037d, Offset.offset( 10d ) );
checkResult( hits.get( 2 ), 2457d, Offset.offset( 10d ) );
Expand All @@ -96,7 +96,7 @@ public void distance_nestedDocument() {
.sort( f -> f.field( "ordinal" ).desc() )
.fetchAllHits();

assertEquals( hits.size(), 3 );
assertEquals( 3, hits.size() );
checkResult( hits.get( 0 ), 164d, Offset.offset( 10d ) );
checkResult( hits.get( 1 ), 1037d, Offset.offset( 10d ) );
checkResult( hits.get( 2 ), 2457d, Offset.offset( 10d ) );
Expand Down

0 comments on commit 40e6e03

Please sign in to comment.