コード例 #1
0
 @Override
 public boolean isApplicable(Class<? extends AbstractProject> jobType) {
   return jobType.equals(FreeStyleProject.class);
 }
コード例 #2
0
 /**
  * Creates a string representing a path in TFVC where the specified {@param testDescription} will
  * perform its work.
  *
  * @param testDescription metadata about the currently executing test method.
  * @return a string that looks like <code>$/FunctionalTests/TestClass/testMethod</code>
  */
 public static String determinePathInTfvcForTestCase(Description testDescription) {
   final Class clazz = testDescription.getTestClass();
   final String testClassName = clazz.getSimpleName();
   final String testCaseName = testDescription.getMethodName();
   return "$/FunctionalTests" + "/" + testClassName + "/" + testCaseName;
 }