GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • language/analysis
    • pom.xml
    • src/test/java/com/google/cloud/language/samples
      • AnalyzeIT.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎language/analysis/pom.xml‎

Copy file name to clipboardExpand all lines: language/analysis/pom.xml
+1-1Lines changed: 1 addition & 1 deletion
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] -->
Collapse file

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

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 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+
"You are an idiot suck face and I hope you choke on your jolly rancher.");
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.