Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Adds missing end-to-end test coverage for the withList operation, which verifies handling of "list" as a property name (a reserved word in many languages).

Changes

  • Added testWithList() to ModelPropertyClientTest.java following existing test patterns
  • Added chronus changelog entry (changeKind: internal)
@Test
public void testWithList() {
    client.withList(new ModelWithList("ok"));
}

Test validates the scenario defined in special-words/main.tsp:L290.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Copilot AI changed the title [WIP] Add end-to-end test for withList in ModelPropertiesClient Add e2e test for withList in specialwords ModelPropertiesClient Jan 23, 2026
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot added emitter:client:java Issue for the Java client emitter: @typespec/http-client-java eng labels Jan 23, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 23, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9451
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9451
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client-java@9451

commit: 7aafdc2

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

@typespec/http-client-java - internal ✏️

Add end-to-end test for withList operation in specialwords ModelPropertiesClient.

@weidongxu-microsoft weidongxu-microsoft added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit 06c4750 Jan 23, 2026
34 checks passed
@weidongxu-microsoft weidongxu-microsoft deleted the copilot/add-e2e-test-withlist branch January 23, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:java Issue for the Java client emitter: @typespec/http-client-java eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants