Created
March 6, 2018 13:14
-
-
Save zawadz88/5795bcd8eac89f134dfe9873b16645f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class OrchestratedInstrumentationListener extends RunListener { | |
| ... | |
| OrchestratorCallback odoCallback; | |
| ... | |
| public void addTests(Description description) { | |
| if (description.isTest()) { | |
| String var2 = description.getClassName(); | |
| String var3 = description.getMethodName(); | |
| this.addTest((new StringBuilder(1 + String.valueOf(var2).length() + String.valueOf(var3).length())).append(var2).append("#").append(var3).toString()); | |
| } else { | |
| Iterator var4 = description.getChildren().iterator(); | |
| while(var4.hasNext()) { | |
| Description child = (Description)var4.next(); | |
| this.addTests(child); | |
| } | |
| } | |
| } | |
| public void addTest(String test) { | |
| if (null == this.odoCallback) { | |
| throw new IllegalStateException("Unable to send test, callback is null"); | |
| } else { | |
| try { | |
| this.odoCallback.addTest(test); | |
| } catch (RemoteException var3) { | |
| Log.e("OrchestrationListener", "Unable to send test", var3); | |
| } | |
| } | |
| } | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment