Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
SwitchUserTargetPreparer
public class SwitchUserTargetPreparer
extends BaseTargetPreparer
Un ITargetPreparer
che passa al tipo di utente specificato in setUp. Per impostazione predefinita rimane nell'utente corrente e non viene eseguita alcuna commutazione.
Tenta di ripristinare lo stato utente del dispositivo tornando all'utente corrente precedente all'esecuzione.
Riepilogo
Costruttori pubblici
SwitchUserTargetPreparer
public SwitchUserTargetPreparer ()
Metodi pubblici
public void setUp (TestInformation testInformation)
Parametri |
---|
testInformation | TestInformation |
public void tearDown (TestInformation testInformation,
Throwable e)
Parametri |
---|
testInformation | TestInformation |
e | Throwable |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Mancano le informazioni di cui ho bisogno"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Troppo complicato/troppi passaggi"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Obsoleti"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema di traduzione"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema relativo a esempi/codice"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Altra"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Facile da capire"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Il problema è stato risolto"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Altra"
}]