forked from ORCID/ORCID-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing to add the unit tests for the IssnManager
- Loading branch information
1 parent
3b326ba
commit ac35fbf
Showing
6 changed files
with
103 additions
and
39 deletions.
There are no files selected for viewing
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
44 changes: 44 additions & 0 deletions
44
...eduler-web/src/main/java/org/orcid/scheduler/loader/source/cli/LoadDataForIssnSource.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,44 @@ | ||
package org.orcid.scheduler.loader.source.cli; | ||
|
||
import org.orcid.scheduler.loader.manager.IssnLoadManager; | ||
import org.orcid.scheduler.loader.manager.OrgLoadManager; | ||
import org.orcid.scheduler.loader.source.OrgLoadSource; | ||
import org.orcid.scheduler.loader.source.issn.IssnLoadSource; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.support.ClassPathXmlApplicationContext; | ||
|
||
public class LoadDataForIssnSource { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(LoadDataForIssnSource.class); | ||
private IssnLoadManager issnLoadManager; | ||
|
||
|
||
private IssnLoadSource issnDataSource; | ||
|
||
/** | ||
* Setup our spring resources | ||
* | ||
*/ | ||
@SuppressWarnings({ "resource" }) | ||
private void init() { | ||
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-scheduler-context.xml"); | ||
issnLoadManager = (IssnLoadManager) context.getBean("issnLoadManager"); | ||
issnDataSource = (IssnLoadSource) context.getBean("issnDataSource"); | ||
|
||
} | ||
|
||
|
||
public void loadIssn() { | ||
issnLoadManager.loadIssn(); | ||
return; | ||
} | ||
|
||
|
||
public static void main(String[] args) { | ||
LoadDataForIssnSource loadDataForIssnSource = new LoadDataForIssnSource(); | ||
loadDataForIssnSource.loadIssn(); | ||
} | ||
|
||
} |
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