コード例 #1
0
 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;
       }
     }
   }
 }
コード例 #2
0
 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);
   }
 }
コード例 #3
0
 void setTestArtifactInfo(Object o, TestArtifactInfo testArtifactInfo) {
   Object param = createTestArtifactInfo(testArtifactInfo);
   invokeSetter(o, "setTestArtifactInfo", this.testArtifactInfo, param);
 }
コード例 #4
0
 void setReporterConfiguration(Object o, ReporterConfiguration reporterConfiguration) {
   Object param = createReporterConfiguration(reporterConfiguration);
   invokeSetter(o, "setReporterConfiguration", this.reporterConfiguration, param);
 }
コード例 #5
0
 void setProviderProperties(Object o, Map<String, String> providerProperties) {
   invokeSetter(o, "setProviderProperties", Map.class, providerProperties);
 }
コード例 #6
0
 void setTestSuiteDefinition(Object o, TestRequest testSuiteDefinition1) {
   Object param = createTestRequest(testSuiteDefinition1);
   invokeSetter(o, "setTestRequest", testRequest, param);
 }
コード例 #7
0
 public void setRunOrderParameters(Object o, RunOrderParameters runOrderParameters) {
   Object param = createRunOrderParameters(runOrderParameters);
   invokeSetter(o, "setRunOrderParameters", this.runOrderParameters, param);
 }
コード例 #8
0
 public void setDirectoryScannerParameters(Object o, DirectoryScannerParameters dirScannerParams) {
   Object param = createDirectoryScannerParameters(dirScannerParams);
   invokeSetter(o, "setDirectoryScannerParameters", directoryScannerParameters, param);
 }
コード例 #9
0
 public void setSkipAfterFailureCount(Object o, int skipAfterFailureCount) {
   invokeSetter(o, "setSkipAfterFailureCount", int.class, skipAfterFailureCount);
 }