Skip to content

Commit 945d36c

Browse files
authored
Assertion test for adding Context ID.
1 parent 952bf9d commit 945d36c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/server-common/src/test/java/io/a2a/server/apps/common/AbstractA2AServerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public void testCancelTaskSuccess() throws Exception {
169169
assertNull(response.getError());
170170
Task task = response.getResult();
171171
assertEquals(CANCEL_TASK.getId(), task.getId());
172+
assertEquals(CANCEL_TASK.getContextId(), task.getContextId());
172173
assertEquals(TaskState.CANCELED, task.getStatus().state());
173174
} catch (A2AServerException e) {
174175
fail("Unexpected exception during cancel task success test: " + e.getMessage(), e);
@@ -1130,4 +1131,4 @@ protected void savePushNotificationConfigInStore(String taskId, PushNotification
11301131
throw new RuntimeException(response.statusCode() + ": Creating task push notification config failed! " + response.body());
11311132
}
11321133
}
1133-
}
1134+
}

0 commit comments

Comments
 (0)