@@ -139,34 +139,6 @@ public void afterEach() {
139139 System .setOut (printStream );
140140 }
141141
142- @ Test
143- public void testMultimodalMultiImage () throws IOException {
144- MultimodalMultiImage .multimodalMultiImage (PROJECT_ID , LOCATION , GEMINI_FLASH );
145- assertThat (bout .toString ()).contains ("city: Rio de Janeiro, Landmark: Christ the Redeemer" );
146- }
147-
148- @ Test
149- public void testMultimodalQuery () throws Exception {
150- String imageUri =
151- "https://storage.googleapis.com/cloud-samples-data/vertex-ai/llm/prompts/landmark1.png" ;
152- String dataImageBase64 = Base64 .getEncoder ().encodeToString (readImageFile (imageUri ));
153- String output =
154- MultimodalQuery .multimodalQuery (PROJECT_ID , LOCATION , GEMINI_FLASH , dataImageBase64 );
155- assertThat (output ).isNotEmpty ();
156- }
157-
158- @ Test
159- public void testMultimodalVideoInput () throws IOException {
160- MultimodalVideoInput .multimodalVideoInput (PROJECT_ID , LOCATION , GEMINI_FLASH );
161- assertThat (bout .toString ()).contains ("Zoo" );
162- }
163-
164- @ Test
165- public void testMultiTurnMultimodal () throws IOException {
166- MultiTurnMultimodal .multiTurnMultimodal (PROJECT_ID , LOCATION , GEMINI_FLASH );
167- assertThat (bout .toString ()).contains ("scones" );
168- }
169-
170142 @ Test
171143 public void testSimpleQuestionAnswer () throws Exception {
172144 String output = QuestionAnswer .simpleQuestion (PROJECT_ID , LOCATION , GEMINI_FLASH );
@@ -180,16 +152,6 @@ public void testQuickstart() throws IOException {
180152 assertThat (output ).contains ("cookie" );
181153 }
182154
183- @ Test
184- public void testSingleTurnMultimodal () throws IOException {
185- String imageUri =
186- "https://storage.googleapis.com/cloud-samples-data/vertex-ai/llm/prompts/landmark1.png" ;
187- String dataImageBase64 = Base64 .getEncoder ().encodeToString (readImageFile (imageUri ));
188- SingleTurnMultimodal .generateContent (
189- PROJECT_ID , LOCATION , GEMINI_FLASH , "What is this image" , dataImageBase64 );
190- assertThat (bout .toString ()).contains ("Colosseum" );
191- }
192-
193155 @ Test
194156 public void testStreamingQuestions () throws Exception {
195157 StreamingQuestionAnswer .streamingQuestion (PROJECT_ID , LOCATION , GEMINI_FLASH );
@@ -235,20 +197,6 @@ public void testVideoAudioInput() throws IOException {
235197 assertThat (output ).ignoringCase ().contains ("Tokyo" );
236198 }
237199
238- @ Test
239- public void testAllModalityInputs () throws IOException {
240- String output = MultimodalAllInput .multimodalAllInput (PROJECT_ID , LOCATION , GEMINI_FLASH );
241-
242- assertThat (output ).ignoringCase ().contains ("0:4" );
243- }
244-
245- @ Test
246- public void testPdfInput () throws IOException {
247- String output = PdfInput .pdfInput (PROJECT_ID , LOCATION , GEMINI_FLASH );
248-
249- assertThat (output ).ignoringCase ().contains ("Gemini" );
250- }
251-
252200 @ Test
253201 public void testGroundingWithPublicData () throws Exception {
254202 String output =
0 commit comments