Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
fix inheritance setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Nov 2, 2015
1 parent 60344cf commit 7737356
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

import org.junit.Before;
import org.junit.runner.RunWith;
import org.n52.wps.commons.SpringIntegrationHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
Expand Down Expand Up @@ -80,7 +81,7 @@ public static void prepare() throws IOException, FileNotFoundException, XmlExcep
}

@Before
public void setup() throws ExceptionReport, IOException {
public void createWorkingDir() throws ExceptionReport, IOException {
workingDir = Files.createTempDirectory("wps4r-it-").toAbsolutePath();
config.getConfigModule().setWdName(workingDir.toString());
}
Expand All @@ -98,6 +99,7 @@ protected RAlgorithmRepository getRAlgorithmRepository(R_Config config, String s
ReflectionTestUtils.setField(scriptFileRepository, "annotationParser", parser);
ReflectionTestUtils.setField(scriptFileRepository, "config", config);
if (scriptDir != null) {
// TODO use RAlgorithmRepository#addAlgorithm(Object)
scriptFileRepository.registerScriptFiles(TestUtil.loadFile(scriptDir));
}

Expand Down

0 comments on commit 7737356

Please sign in to comment.