firebase / firebase/firebase-admin-java
[FR] Open up FirebaseMessagingException
- Lingua principale
- Java
- Stelle
- 620
- Fork
- 305
- Merge medio
- 3h 23m
- PR unite (30g)
- 1
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by locating FirebaseMessagingException and reviewing its constructors and existing tests. Confirm that tests can instantiate exceptions for the UNREGISTERED and INVALID_ARGUMENT error codes while preserving the SDK's intended exception behavior; done when those scenarios are testable.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- firebase, java
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100