Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save zawadz88/5795bcd8eac89f134dfe9873b16645f0 to your computer and use it in GitHub Desktop.

Select an option

Save zawadz88/5795bcd8eac89f134dfe9873b16645f0 to your computer and use it in GitHub Desktop.
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