android / android/android-test
I want move activity state to STOPPED, ActivityScenario#moveToState(STOPPED)
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 342
- Merge medio
- 11h 29m
- PR unite (30g)
- 2
Descrizione
### Description
I want move activity state to STOPPED,but I can not find STOPPED State enum. And I read the source code
```
public ActivityScenario moveToState(State newState) {
...
switch(newState) {
case CREATED:
this.activityInvoker.stopActivity(currentState.activity);
break;
...
```
I should call moveToState(CREATED), it's hard to understand.
### Steps to Reproduce
### Expected Results
### Actual Results
### AndroidX Test and Android OS Versions
```
'androidx.test:runner:1.1.0',
'androidx.test:rules:1.1.0',
'androidx.test.ext:junit:1.1.2',
```
### Link to a public git repo demonstrating the problem:
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with ActivityScenario#moveToState(State) and the switch shown in the issue, then inspect how activity lifecycle states are represented and transitioned. Confirm how an explicit STOPPED state should behave and add coverage demonstrating that moveToState(STOPPED) reaches the expected lifecycle state.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- mobile, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100