firebase / firebase/firebase-admin-java
[FR] Open up FirebaseMessagingException
- 主要语言
- Java
- 星标
- 620
- 派生
- 305
- 平均合并
- 3 小时 23 分钟
- 30 天内合并 PR
- 1
描述
**Is your feature request related to a problem? Please describe.**
FirebaseMessagingException is final and has package private/private constructors. This prevents using the exception in tests. The firebase recommendation to deal with invalid tokens is to react on error code UNREGISTERED and INVALID_ARGUMENT. In order to test my code that deals with this scenario I would need to create a FirebaseMessagingException with the specified error codes which I can't.
**Describe the solution you'd like**
Open up FirebaseMessagingException to allow instantiation in tests.
贡献指南
调研方向
首先定位 FirebaseMessagingException,并检查其构造函数和现有测试。确认测试可以为错误代码 UNREGISTERED 和 INVALID_ARGUMENT 实例化异常,同时保留 SDK 预期的异常行为;当这些场景可测试时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- firebase, java
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100