Revision 49001
Added by Alessia Bardi over 6 years ago
VirtuosoClientTest.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 | 4 |
|
5 |
import eu.dnetlib.miscutils.functional.xml.SaxonHelper;
|
|
6 |
import net.sf.saxon.s9api.SaxonApiException;
|
|
5 |
import eu.dnetlib.parthenos.publisher.ParthenosPublisherException;
|
|
6 |
import eu.dnetlib.parthenos.publisher.SaxonHelper;
|
|
7 | 7 |
import org.apache.commons.io.IOUtils; |
8 | 8 |
import org.apache.commons.logging.Log; |
9 | 9 |
import org.apache.commons.logging.LogFactory; |
... | ... | |
34 | 34 |
private VirtuosoClient client; |
35 | 35 |
|
36 | 36 |
@Before |
37 |
public void prepare() throws SaxonApiException {
|
|
37 |
public void prepare() throws ParthenosPublisherException {
|
|
38 | 38 |
client = new VirtuosoClient(connectionString, testUser, testPwd, new SaxonHelper(), defaultURIBaseURl); |
39 | 39 |
} |
40 | 40 |
|
... | ... | |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
@Test |
48 |
public void testRecord(){ |
|
48 |
public void testRecord() throws ParthenosPublisherException {
|
|
49 | 49 |
System.out.println(client.feed(getString(recordPath))); |
50 | 50 |
} |
51 | 51 |
|
Also available in: Unified diff
API for storing on virtuoso