protected void setUp() {
   super.setUp();
   baseExecutionService =
       new ExecutionServiceImpl(
           ExecutionServiceFactory.defaultExecutorClasses,
           new HashMap<Class<? extends ExecutionItem>, Executor>(),
           getFrameworkInstance());
 }
  public void setUp() {
    super.setUp();
    final Framework frameworkInstance = getFrameworkInstance();

    final IRundeckProject frameworkProject =
        frameworkInstance.getFrameworkProjectMgr().createFrameworkProject(PROJ_NAME);
    generateProjectResourcesFile(
        new File("src/test/resources/com/dtolabs/rundeck/core/common/test-nodes1.xml"),
        frameworkProject);
  }
Ejemplo n.º 3
0
  public void setUp() {
    super.setUp();

    final Framework frameworkInstance = getFrameworkInstance();
    final FrameworkProject frameworkProject =
        frameworkInstance.getFrameworkProjectMgr().createFrameworkProject(PROJ_NAME);
    File resourcesfile = new File(frameworkProject.getNodesResourceFilePath());
    // copy test nodes to resources file
    try {
      FileUtils.copyFileStreams(
          new File("src/test/resources/com/dtolabs/rundeck/core/common/test-nodes1.xml"),
          resourcesfile);
    } catch (IOException e) {
      throw new RuntimeException("Caught Setup exception: " + e.getMessage(), e);
    }
  }
Ejemplo n.º 4
0
 public void tearDown() throws Exception {
   super.tearDown();
   File projectdir = new File(getFrameworkProjectsBase(), PROJ_NAME);
   FileUtils.deleteDir(projectdir);
 }
  protected void tearDown() throws Exception {
    super.tearDown();

    File projectdir = new File(getFrameworkProjectsBase(), TEST_PROJECT);
    FileUtils.deleteDir(projectdir);
  }
Ejemplo n.º 6
0
 protected void tearDown() throws Exception {
   super.tearDown();
 }
Ejemplo n.º 7
0
 protected void setUp() {
   super.setUp();
 }