use of org.gradle.test.fixtures.file.TestFile in project gradle by gradle.
the class Resources method getResource.
/**
* Locates the resource with the given name, relative to the current test class. Asserts that the resource exists.
*/
public TestFile getResource(String name) {
assertNotNull(testClass);
TestFile file = findResource(name);
assertNotNull(String.format("Could not locate resource '%s' for test class %s.", name, testClass.getName()), file);
return file;
}
use of org.gradle.test.fixtures.file.TestFile in project gradle by gradle.
the class XcodebuildExecutor method withProject.
public XcodebuildExecutor withProject(XcodeProjectPackage xcodeProject) {
TestFile projectDir = new TestFile(xcodeProject.getDir());
projectDir.assertIsDir();
return addArguments("-project", projectDir.getAbsolutePath());
}
use of org.gradle.test.fixtures.file.TestFile in project gradle by gradle.
the class XcodebuildExecutor method withWorkspace.
public XcodebuildExecutor withWorkspace(XcodeWorkspacePackage xcodeWorkspace) {
TestFile workspaceDir = new TestFile(xcodeWorkspace.getDir());
workspaceDir.assertIsDir();
return addArguments("-workspace", workspaceDir.getAbsolutePath());
}
Aggregations