2011-11-30 16 views

risposta

10

Sì, è possibile controllare la modalità di test nel metodo doJob per quella

@Override 
public void doJob() throws Exception { 
    if (!Play.runingInTestMode()) { 
     // Do your stuff 
    } 
} 
Problemi correlati