Skip to content

Commit

Permalink
Eliminate SonarQube warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 18, 2024
1 parent 86e492b commit 71f421f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,31 @@ void setUp() throws Exception {
*/
@Test
void testCompareOriginalRenditionToItself() {
assertEquals(originalRendition.compareTo(originalRendition), 0, "original rendition is not equal to itself");
assertEquals(0, originalRendition.compareTo(originalRendition), "original rendition is not equal to itself");
}

/**
* Small and big rendition
*/
@Test
void testCompareSmallToBigRendition() {
assertEquals(smallestRendition.compareTo(biggestRendition), -1, "smaller rendition is not smaller");
assertEquals(-1, smallestRendition.compareTo(biggestRendition), "smaller rendition is not smaller");
}

/**
* Big and small rendition
*/
@Test
void testCompareBigToSmallRendition() {
assertEquals(biggestRendition.compareTo(smallestRendition), 1, "bigger rendition is not bigger");
assertEquals(1, biggestRendition.compareTo(smallestRendition), "bigger rendition is not bigger");
}

/**
* Two equal renditions
*/
@Test
void testCompareTwoEqualRenditions() {
assertEquals(biggestRendition.compareTo(biggestRendition), 0, "two equal renditions are not equal");
assertEquals(0, biggestRendition.compareTo(biggestRendition), "two equal renditions are not equal");
}

/**
Expand Down

0 comments on commit 71f421f

Please sign in to comment.