.getTestSize( parsedTestSize ); remoteAndroidTestRunner.setTestSize( validSize );
IRemoteAndroidTestRunner.TestSize testSize = summary.getTestSize(); String started = HtmlUtils.dateToString(summary.getStarted()); String totalTestsRun = testsRun + (testSize != null ? " " + testSize.name().toLowerCase() : "") + " test" + (testsRun != 1 ? "s" : ""); String totalDevices = deviceCount + " device" + (deviceCount != 1 ? "s" : "");
IRemoteAndroidTestRunner.TestSize testSize = summary.getTestSize(); String started = HtmlUtils.dateToString(summary.getStarted()); String totalTestsRun = testsRun + (testSize != null ? " " + testSize.name().toLowerCase() : "") + " test" + (testsRun != 1 ? "s" : ""); String totalDevices = deviceCount + " device" + (deviceCount != 1 ? "s" : "");
/** * Return the {@link TestSize} corresponding to the given Android platform defined value. * * @throws IllegalArgumentException if {@link TestSize} cannot be found. */ public static TestSize getTestSize(String value) { // build the error message in the success case too, to avoid two for loops StringBuilder msgBuilder = new StringBuilder("Unknown TestSize "); msgBuilder.append(value); msgBuilder.append(", Must be one of "); for (TestSize size : values()) { if (size.getRunnerValue().equals(value)) { return size; } msgBuilder.append(size.getRunnerValue()); msgBuilder.append(", "); } throw new IllegalArgumentException(msgBuilder.toString()); } }
/** * Return the {@link TestSize} corresponding to the given Android platform defined value. * * @throws IllegalArgumentException if {@link TestSize} cannot be found. */ public static TestSize getTestSize(String value) { // build the error message in the success case too, to avoid two for loops StringBuilder msgBuilder = new StringBuilder("Unknown TestSize "); msgBuilder.append(value); msgBuilder.append(", Must be one of "); for (TestSize size : values()) { if (size.getRunnerValue().equals(value)) { return size; } msgBuilder.append(size.getRunnerValue()); msgBuilder.append(", "); } throw new IllegalArgumentException(msgBuilder.toString()); } }
public Builder withTestSize(String testSize) { this.testSize = (testSize == null ? null : IRemoteAndroidTestRunner.TestSize.getTestSize(testSize)); return this; }
@Override public void setTestSize(TestSize size) { addInstrumentationArg(SIZE_ARG_NAME, size.getRunnerValue()); }
/** * {@inheritDoc} */ public void setTestSize(TestSize size) { addInstrumentationArg(SIZE_ARG_NAME, size.getRunnerValue()); }