Skip to content

feat(methods): add chat.postMessage example (compile-only)#48

Draft
zimeg wants to merge 3 commits into
mainfrom
methods-typecheck-only
Draft

feat(methods): add chat.postMessage example (compile-only)#48
zimeg wants to merge 3 commits into
mainfrom
methods-typecheck-only

Conversation

@zimeg

@zimeg zimeg commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

This pull request adds a methods/ chat.postMessage example verified by compilation only — no MockWebServer runtime test.

  • chatPostMessage and its ChatPostMessageRequest builder are strongly typed, so javac catches wrong or misspelled arguments (e.g. .chnnel(...) → cannot find symbol) at compile time.
  • No test class, no mockwebserver dependency.

Comparison PR. This is an alternative to the MockWebServer runtime-test approach (see PR #47) for side-by-side evaluation of testing strategy across the example repos.

Testing

  • Run the example end-to-end: export SLACK_TOKEN="xoxb-..." then mvn compile exec:java -Dexec.mainClass=chat.ChatPostMessage from methods/; confirm the message posts.

🤖 Generated with Claude Code

zimeg and others added 3 commits July 14, 2026 16:45
Add a methods/ chat.postMessage example verified by compilation alone,
with no MockWebServer test. Because chatPostMessage and its request
builder are strongly typed, javac catches wrong or misspelled arguments
(e.g. .chnnel(...) -> cannot find symbol) at compile time without a mock
server.

This is an alternative to the MockWebServer runtime-test approach for
side-by-side comparison.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Add the methods example module to the CI matrix. The compile-only example
has no test class; `mvn test` compiles it and runs zero tests, so CI
verifies it builds and passes spotless.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant