@Override public boolean isApplicable(Class<? extends AbstractProject> jobType) { return jobType.equals(FreeStyleProject.class); }
/** * 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; }