GeezerVison is showing github.com — Update test language to be more negative. · boy12371/java-docs-samples@4df07bd
File tree
Expand file treeCollapse file tree
Open diff view settings
src/test/java/com/google/cloud/language/samples
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: language/analysis/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ limitations under the License. |
18 | 18 | <packaging>jar</packaging> |
19 | 19 | <version>1.0-SNAPSHOT</version> |
20 | 20 | <groupId>com.google.cloud.language.samples</groupId> |
21 | | - <artifactId>entities</artifactId> |
| 21 | + <artifactId>language-entities</artifactId> |
22 | 22 |
|
23 | 23 | <dependencies> |
24 | 24 | <!-- [START dependencies] --> |
|
Collapse file
Copy file name to clipboardExpand all lines: language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,10 +59,10 @@ public class AnalyzeIT { |
59 | 59 |
|
60 | 60 | @Test public void analyzeSentiment_returnPositive() throws Exception { |
61 | 61 | // Act |
62 | | - Sentiment sentiment = |
| 62 | + Sentiment sentiment = |
63 | 63 | analyzeApp.analyzeSentiment( |
64 | 64 | "Tom Cruise is one of the finest actors in hollywood and a great star!"); |
65 | | - |
| 65 | + |
66 | 66 | // Assert |
67 | 67 | assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0); |
68 | 68 | assertThat((double)sentiment.getPolarity()).isGreaterThan(0.0); |
@@ -72,7 +72,7 @@ public class AnalyzeIT { |
72 | 72 | // Act |
73 | 73 | Sentiment sentiment = |
74 | 74 | analyzeApp.analyzeSentiment( |
75 | | - "John was seriously injured in an accident"); |
| 75 | + "You are an idiot suck face and I hope you choke on your jolly rancher."); |
76 | 76 |
|
77 | 77 | // Assert |
78 | 78 | assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0); |
@@ -89,7 +89,7 @@ public class AnalyzeIT { |
89 | 89 | .collect(Collectors.toList()); |
90 | 90 |
|
91 | 91 | // Assert |
92 | | - assertThat(got).containsExactly("NOUN", "NOUN", "VERB", |
| 92 | + assertThat(got).containsExactly("NOUN", "NOUN", "VERB", |
93 | 93 | "VERB", "ADP", "DET", "ADJ", "NOUN").inOrder(); |
94 | 94 | } |
95 | 95 | } |