thunderbird / thunderbird/thunderbird-android
Add Unit Tests for MessageActions Utility Class
@shamim-emon is already working on this.
Since Jun 4, 2025.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
Description
MessageActions in com.fsck.k9.activity.compose contains utility methods for launching the MessageCompose activity with different configurations (compose, reply, reply-all, forward, edit draft, etc.).
This issue proposes writing comprehensive unit tests for MessageActions to ensure:
-
Correct Intent is created with expected extras and actions.
-
Fallback logic (like launching AccountSetup when no account is available) is verified.
-
All action methods (actionCompose, actionReply, actionForward, etc.) trigger appropriate flows.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.