-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test-configuration changes to ensure consistent use of H1/H3 for the …
…relevant tests.
- Loading branch information
Showing
6 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
harvester/harvester-core/src/test/java/dk/netarkivet/harvester/HeritrixConfigurator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package dk.netarkivet.harvester; | ||
|
||
import dk.netarkivet.common.utils.Settings; | ||
import dk.netarkivet.harvester.HarvesterSettings; | ||
|
||
/** | ||
* Contains utility methods to switch between use of Heritrix1 and Heritrix3. | ||
*/ | ||
public class HeritrixConfigurator { | ||
|
||
/** | ||
* No instances. | ||
*/ | ||
private HeritrixConfigurator(){} | ||
|
||
/** | ||
* Use Heritrix1. | ||
*/ | ||
public static void setUseH1() { | ||
Settings.set(HarvesterSettings.HERITRIX_CONTROLLER_CLASS, "dk.netarkivet.harvester.harvesting.controller.JMXHeritrixController"); | ||
Settings.set(HarvesterSettings.HERITRIX_LAUNCHER_CLASS, "dk.netarkivet.harvester.harvesting.controller.BnfHeritrixLauncher"); | ||
} | ||
|
||
/** | ||
* Use Heritrix3. | ||
*/ | ||
public static void setUseH3() { | ||
Settings.set(HarvesterSettings.HERITRIX_CONTROLLER_CLASS, "dk.netarkivet.harvester.heritrix3.controller.HeritrixController" ); | ||
Settings.set(HarvesterSettings.HERITRIX_LAUNCHER_CLASS, "dk.netarkivet.harvester.heritrix3.controller.HeritrixLauncher"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters