|
6 | 6 | import static io.a2a.client.transport.rest.JsonRestMessages.GET_TASK_PUSH_NOTIFICATION_CONFIG_TEST_RESPONSE; |
7 | 7 | import static io.a2a.client.transport.rest.JsonRestMessages.GET_TASK_TEST_RESPONSE; |
8 | 8 | import static io.a2a.client.transport.rest.JsonRestMessages.LIST_TASK_PUSH_NOTIFICATION_CONFIG_TEST_RESPONSE; |
| 9 | +import static io.a2a.client.transport.rest.JsonRestMessages.SEND_MESSAGE_STREAMING_TEST_REQUEST; |
9 | 10 | import static io.a2a.client.transport.rest.JsonRestMessages.SEND_MESSAGE_STREAMING_TEST_RESPONSE; |
10 | 11 | import static io.a2a.client.transport.rest.JsonRestMessages.SEND_MESSAGE_TEST_REQUEST; |
11 | 12 | import static io.a2a.client.transport.rest.JsonRestMessages.SEND_MESSAGE_TEST_RESPONSE; |
12 | | -import static io.a2a.client.transport.rest.JsonRestMessages.SEND_MESSAGE_STREAMING_TEST_REQUEST; |
13 | 13 | import static io.a2a.client.transport.rest.JsonRestMessages.SET_TASK_PUSH_NOTIFICATION_CONFIG_TEST_REQUEST; |
14 | 14 | import static io.a2a.client.transport.rest.JsonRestMessages.SET_TASK_PUSH_NOTIFICATION_CONFIG_TEST_RESPONSE; |
15 | 15 | import static io.a2a.client.transport.rest.JsonRestMessages.TASK_RESUBSCRIPTION_REQUEST_TEST_RESPONSE; |
| 16 | +import static io.a2a.spec.AgentCard.CURRENT_PROTOCOL_VERSION; |
16 | 17 | import static org.junit.jupiter.api.Assertions.assertEquals; |
17 | 18 | import static org.junit.jupiter.api.Assertions.assertInstanceOf; |
18 | 19 | import static org.junit.jupiter.api.Assertions.assertNotNull; |
|
21 | 22 | import static org.mockserver.model.HttpRequest.request; |
22 | 23 | import static org.mockserver.model.HttpResponse.response; |
23 | 24 |
|
| 25 | +import java.io.IOException; |
| 26 | +import java.util.Collections; |
| 27 | +import java.util.List; |
| 28 | +import java.util.concurrent.CountDownLatch; |
| 29 | +import java.util.concurrent.TimeUnit; |
| 30 | +import java.util.concurrent.atomic.AtomicReference; |
| 31 | +import java.util.function.Consumer; |
| 32 | +import java.util.logging.Logger; |
| 33 | + |
24 | 34 | import io.a2a.client.transport.spi.interceptors.ClientCallContext; |
25 | 35 | import io.a2a.spec.AgentCapabilities; |
26 | 36 | import io.a2a.spec.AgentCard; |
27 | 37 | import io.a2a.spec.AgentSkill; |
28 | 38 | import io.a2a.spec.Artifact; |
| 39 | +import io.a2a.spec.AuthenticationInfo; |
29 | 40 | import io.a2a.spec.DeleteTaskPushNotificationConfigParams; |
30 | 41 | import io.a2a.spec.EventKind; |
31 | 42 | import io.a2a.spec.FilePart; |
|
38 | 49 | import io.a2a.spec.MessageSendParams; |
39 | 50 | import io.a2a.spec.Part; |
40 | 51 | import io.a2a.spec.Part.Kind; |
41 | | -import io.a2a.spec.AuthenticationInfo; |
42 | 52 | import io.a2a.spec.PushNotificationConfig; |
43 | 53 | import io.a2a.spec.StreamingEventKind; |
44 | 54 | import io.a2a.spec.Task; |
|
47 | 57 | import io.a2a.spec.TaskQueryParams; |
48 | 58 | import io.a2a.spec.TaskState; |
49 | 59 | import io.a2a.spec.TextPart; |
50 | | -import java.io.IOException; |
51 | | -import java.util.Collections; |
52 | | -import java.util.List; |
53 | | -import java.util.concurrent.CountDownLatch; |
54 | | -import java.util.concurrent.TimeUnit; |
55 | | -import java.util.concurrent.atomic.AtomicReference; |
56 | | -import java.util.function.Consumer; |
57 | | -import java.util.logging.Logger; |
58 | 60 | import org.junit.jupiter.api.AfterEach; |
59 | 61 | import org.junit.jupiter.api.BeforeEach; |
60 | 62 | import org.junit.jupiter.api.Test; |
@@ -86,7 +88,7 @@ public class RestTransportTest { |
86 | 88 | .tags(Collections.singletonList("hello world")) |
87 | 89 | .examples(List.of("hi", "hello world")) |
88 | 90 | .build())) |
89 | | - .protocolVersion("0.3.0") |
| 91 | + .protocolVersion(CURRENT_PROTOCOL_VERSION) |
90 | 92 | .build(); |
91 | 93 |
|
92 | 94 | @BeforeEach |
|
0 commit comments