public void setShutdown(Object o, Shutdown shutdown) { if (shutdownAwareClass.isAssignableFrom(o.getClass())) { for (Enum e : shutdownClass.getEnumConstants()) { if (shutdown.ordinal() == e.ordinal()) { invokeSetter(o, "setShutdown", shutdownClass, e); break; } } } }
public void setMainCliOptions(Object o, List<CommandLineOption> options) { if (mainCliOptions.isAssignableFrom(o.getClass())) { List<Enum> newOptions = checkedList(new ArrayList<Enum>(options.size()), commandLineOptionsClass); Collection<Integer> ordinals = toOrdinals(options); for (Enum e : commandLineOptionsClass.getEnumConstants()) { if (ordinals.contains(e.ordinal())) { newOptions.add(e); } } invokeSetter(o, "setMainCliOptions", List.class, newOptions); } }
void setTestArtifactInfo(Object o, TestArtifactInfo testArtifactInfo) { Object param = createTestArtifactInfo(testArtifactInfo); invokeSetter(o, "setTestArtifactInfo", this.testArtifactInfo, param); }
void setReporterConfiguration(Object o, ReporterConfiguration reporterConfiguration) { Object param = createReporterConfiguration(reporterConfiguration); invokeSetter(o, "setReporterConfiguration", this.reporterConfiguration, param); }
void setProviderProperties(Object o, Map<String, String> providerProperties) { invokeSetter(o, "setProviderProperties", Map.class, providerProperties); }
void setTestSuiteDefinition(Object o, TestRequest testSuiteDefinition1) { Object param = createTestRequest(testSuiteDefinition1); invokeSetter(o, "setTestRequest", testRequest, param); }
public void setRunOrderParameters(Object o, RunOrderParameters runOrderParameters) { Object param = createRunOrderParameters(runOrderParameters); invokeSetter(o, "setRunOrderParameters", this.runOrderParameters, param); }
public void setDirectoryScannerParameters(Object o, DirectoryScannerParameters dirScannerParams) { Object param = createDirectoryScannerParameters(dirScannerParams); invokeSetter(o, "setDirectoryScannerParameters", directoryScannerParameters, param); }
public void setSkipAfterFailureCount(Object o, int skipAfterFailureCount) { invokeSetter(o, "setSkipAfterFailureCount", int.class, skipAfterFailureCount); }