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);
  }
  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);
    }
  }
Exemple #4
0
 protected void setUp() {
   super.setUp();
 }