-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from jdvorak001/issue-12
Fix running the validator from command-line (#12)
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
src/test/java/org/eurocris/openaire/cris/validator/metadataTests/CRISValidator.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,27 @@ | ||
package org.eurocris.openaire.cris.validator.metadataTests; | ||
|
||
import java.io.IOException; | ||
import java.net.URL; | ||
|
||
import javax.xml.parsers.ParserConfigurationException; | ||
|
||
import org.xml.sax.SAXException; | ||
|
||
/** | ||
* Adapting {@link org.eurocris.openaire.cris.validator.CRISValidator} for usage in this package. | ||
* Just inheriting the protected constructor is needed. | ||
*/ | ||
public class CRISValidator extends org.eurocris.openaire.cris.validator.CRISValidator { | ||
|
||
/** | ||
* A simple call to {@link org.eurocris.openaire.cris.validator.CRISValidator#CRISValidator( URL )}. | ||
* @param endpointBaseUrl | ||
* @throws SAXException | ||
* @throws IOException | ||
* @throws ParserConfigurationException | ||
*/ | ||
protected CRISValidator(URL endpointBaseUrl) throws SAXException, IOException, ParserConfigurationException { | ||
super( endpointBaseUrl ); | ||
} | ||
|
||
} |
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