Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 935fa74

Browse files
author
Thomas Gängler
committed
[DD-809] test for reading multiple GDM records
1 parent bedd35e commit 935fa74

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/java/org/dswarm/graph/gdm/test/GDMResourceTest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,28 @@ public void readGDMFromDBThatWasWrittenAsGDM() throws IOException {
182182
LOG.debug("finished read test for GDM resource at {} DB", dbType);
183183
}
184184

185+
/**
186+
* read multiple records
187+
*
188+
* @throws IOException
189+
*/
190+
@Test
191+
public void readGDMFromDBThatWasWrittenAsGDM2() throws IOException {
192+
193+
LOG.debug("start read test for GDM resource at {} DB", dbType);
194+
195+
final String dataModelURI = "http://data.slub-dresden.de/resources/1000";
196+
197+
writeGDMToDBInternal(dataModelURI, "versioning/csv.gdm.v1.json");
198+
199+
final String recordClassURI = "http://data.slub-dresden.de/resources/1/schema#RecordType";
200+
final int numberOfStatements = 113;
201+
202+
readGDMFromDB(recordClassURI, dataModelURI, numberOfStatements, Optional.<Integer>absent());
203+
204+
LOG.debug("finished read test 2 for GDM resource at {} DB", dbType);
205+
}
206+
185207
@Test
186208
public void testAtMostParameter() throws IOException {
187209

0 commit comments

Comments
 (0)