Skip to content

Commit

Permalink
Adapt the tests to having the CRISValidator(URL) protected (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvorak001 committed Dec 9, 2023
1 parent 1871287 commit 2f7f16d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
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 );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.net.URL;

import org.eurocris.openaire.cris.validator.CRISValidator;
import org.junit.Test;

/**
Expand Down

0 comments on commit 2f7f16d

Please sign in to comment.