Skip to content

Commit c741542

Browse files
committed
test: remove unused testControlledGenerationWithJsonSchema6 method from SnippetsIT
1 parent 1fdde03 commit c741542

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

vertexai/snippets/src/test/java/vertexai/gemini/SnippetsIT.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -202,26 +202,4 @@ public void testMultimodalNonStreaming() throws Exception {
202202

203203
assertThat(output).ignoringCase().contains("no");
204204
}
205-
206-
private class Obj {
207-
public String object;
208-
}
209-
210-
@Test
211-
public void testControlledGenerationWithJsonSchema6() throws Exception {
212-
String output = ControlledGenerationSchema6
213-
.controlGenerationWithJsonSchema6(PROJECT_ID, LOCATION, GEMINI_FLASH);
214-
215-
Obj[] objects = new Gson().fromJson(output, Obj[].class);
216-
String recognizedObjects = Arrays.stream(objects)
217-
.map(obj -> obj.object.toLowerCase())
218-
.collect(Collectors.joining(" "));
219-
220-
assertThat(recognizedObjects).isNotEmpty();
221-
assertThat(recognizedObjects).contains("globe");
222-
assertThat(recognizedObjects).contains("keyboard");
223-
assertThat(recognizedObjects).contains("passport");
224-
assertThat(recognizedObjects).contains("pot");
225-
}
226-
227205
}

0 commit comments

Comments
 (0)