Skip to content

Commit 4baae60

Browse files
committed
Fixes error on test
1 parent 81d550f commit 4baae60

File tree

1 file changed

+2
-1
lines changed
  • language/analysis/src/test/java/com/google/cloud/language/samples

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static com.google.common.truth.Truth.assertThat;
2020

2121
import com.google.cloud.language.v1.Entity;
22+
import com.google.cloud.language.v1.PartOfSpeech.Tag;
2223
import com.google.cloud.language.v1.Sentiment;
2324
import com.google.cloud.language.v1.Token;
2425

@@ -85,7 +86,7 @@ public class AnalyzeIT {
8586
analyzeApp.analyzeSyntax(
8687
"President Obama was elected for the second term");
8788

88-
List<String> got = token.stream().map(e -> e.getPartOfSpeech().getTag())
89+
List<Tag> got = token.stream().map(e -> e.getPartOfSpeech().getTag())
8990
.collect(Collectors.toList());
9091

9192
// Assert

0 commit comments

Comments
 (0)