File tree Expand file tree Collapse file tree 2 files changed +0
-61
lines changed
spec-grpc/src/test/java/io/a2a/grpc/utils Expand file tree Collapse file tree 2 files changed +0
-61
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -289,28 +289,4 @@ public void convertTaskTimestampStatus() {
289289 assertNotNull (status .timestamp ());
290290 assertEquals (expectedTimestamp , status .timestamp ());
291291 }
292-
293- @ Test
294- public void testToProtoPartUnsupportedType () {
295- class FakePart extends io .a2a .spec .Part <Object > {
296- @ Override
297- public io .a2a .spec .Part .Kind getKind () { return null ; }
298- @ Override
299- public Map <String , Object > getMetadata () { return Map .of (); }
300- }
301-
302- FakePart fakePart = new FakePart ();
303-
304- io .a2a .spec .Message message = new io .a2a .spec .Message .Builder ()
305- .messageId ("msg-unsupported" )
306- .contextId ("ctx-unsupported" )
307- .role (io .a2a .spec .Message .Role .USER )
308- .parts (List .of (fakePart ))
309- .build ();
310- io .a2a .grpc .Message result = ProtoUtils .ToProto .message (message );
311-
312- assertNotNull (result );
313- assertEquals (1 , result .getContentCount ());
314- }
315-
316292}
You can’t perform that action at this time.
0 commit comments