Skip to content

Commit c8caa87

Browse files
committed
chore: fix broken tests
1 parent 68d1191 commit c8caa87

File tree

3 files changed

+3
-214
lines changed

3 files changed

+3
-214
lines changed

language/snippets/src/main/java/beta/example/language/AnalyzeBeta.java

Lines changed: 0 additions & 133 deletions
This file was deleted.

language/snippets/src/main/java/com/example/language/Analyze.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ public static void classifyText(String text) throws Exception {
282282
try (LanguageServiceClient language = LanguageServiceClient.create()) {
283283
// Set content to the text string
284284
Document doc = Document.newBuilder().setContent(text).setType(Type.PLAIN_TEXT).build();
285-
V2Model v2Model = V2Model.setContentCategoriesVersion(ContentCategoriesVersion.V2).build();
285+
V2Model v2Model = V2Model.newBuilder()
286+
.setContentCategoriesVersion(ContentCategoriesVersion.V2)
287+
.build();
286288
ClassificationModelOptions options =
287289
ClassificationModelOptions.newBuilder().setV2Model(v2Model).build();
288290
ClassifyTextRequest request =

language/snippets/src/test/java/beta/example/language/AnalyzeBetaIT.java

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)