Skip to content

Commit 14dbfe0

Browse files
authored
Merge pull request GoogleCloudPlatform#380 from GoogleCloudPlatform/negative-language
Update test language to be more negative.
2 parents 9949565 + 3892805 commit 14dbfe0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

language/analysis/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
<packaging>jar</packaging>
1919
<version>1.0-SNAPSHOT</version>
2020
<groupId>com.google.cloud.language.samples</groupId>
21-
<artifactId>entities</artifactId>
21+
<artifactId>language-entities</artifactId>
2222

2323
<dependencies>
2424
<!-- [START dependencies] -->

language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public class AnalyzeIT {
5959

6060
@Test public void analyzeSentiment_returnPositive() throws Exception {
6161
// Act
62-
Sentiment sentiment =
62+
Sentiment sentiment =
6363
analyzeApp.analyzeSentiment(
6464
"Tom Cruise is one of the finest actors in hollywood and a great star!");
65-
65+
6666
// Assert
6767
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
6868
assertThat((double)sentiment.getPolarity()).isGreaterThan(0.0);
@@ -72,7 +72,7 @@ public class AnalyzeIT {
7272
// Act
7373
Sentiment sentiment =
7474
analyzeApp.analyzeSentiment(
75-
"John was seriously injured in an accident");
75+
"That was the worst performance I've seen in awhile.");
7676

7777
// Assert
7878
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
@@ -89,7 +89,7 @@ public class AnalyzeIT {
8989
.collect(Collectors.toList());
9090

9191
// Assert
92-
assertThat(got).containsExactly("NOUN", "NOUN", "VERB",
92+
assertThat(got).containsExactly("NOUN", "NOUN", "VERB",
9393
"VERB", "ADP", "DET", "ADJ", "NOUN").inOrder();
9494
}
9595
}

0 commit comments

Comments
 (0)