Skip to content

Commit

Permalink
The .isEqualTo method is deprecated for doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast committed Sep 1, 2016
1 parent fc5cd9a commit a6e09d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class AnalyzeIT {

// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
assertThat((double)sentiment.getPolarity()).isEqualTo(1.0);
assertThat((double)sentiment.getPolarity()).isGreaterThan(0.0);
}

@Test public void analyzeSentiment_returnNegative() throws Exception {
Expand All @@ -76,7 +76,7 @@ public class AnalyzeIT {

// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
assertThat((double)sentiment.getPolarity()).isEqualTo(-1.0);
assertThat((double)sentiment.getPolarity()).isLessThan(0.0);
}

@Test public void analyzeSyntax_partOfSpeech() throws Exception {
Expand Down

0 comments on commit a6e09d6

Please sign in to comment.