}
public void setUp() {
super.setUp();
FrameworkProject d = getFrameworkInstance().getFrameworkProjectMgr().createFrameworkProject(
TEST_EXEC_TOOL_PROJECT);
File projectEtcDir = new File(d.getBaseDir(), "etc");
//copy test nodes xml file to test dir
try {
final File testNodes = new File("src/test/resources/com/dtolabs/rundeck/core/cli/test-dispatch-nodes.xml");
final File projectNodes = new File(projectEtcDir, "resources.xml");
FileUtils.copyFileStreams(testNodes, projectNodes);
} catch (IOException e) {
e.printStackTrace();
}
testScriptFile = new File(d.getBaseDir(), "test.sh");
try {
testScriptFile.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
FrameworkProject d2 = getFrameworkInstance().getFrameworkProjectMgr().createFrameworkProject(
TEST_EXEC_TOOL_PROJ2);
}