set maven repos

This commit is contained in:
Jörg Prante 2021-12-18 20:43:37 +01:00
parent 5ed7a065d7
commit 4608e89029
2 changed files with 7 additions and 3 deletions

View file

@ -0,0 +1,4 @@
repositories {
mavenLocal()
mavenCentral()
}

View file

@ -23,15 +23,15 @@ public class UnimarcTest {
@Test
public void testPerioUni() throws Exception {
String s = "periouni.mrc";
InputStream in = getClass().getResource(s).openStream();
File file = File.createTempFile("periouni.", ".xml");
file.deleteOnExit();
FileOutputStream out = new FileOutputStream(file);
try (MarcXchangeWriter writer = new MarcXchangeWriter(out, true)
.setFormat("UNIMARC")
.setType("Bibliographic")) {
.setType("Bibliographic");
InputStream inputStream = getClass().getResource(s).openStream()) {
Marc.builder()
.setInputStream(in)
.setInputStream(inputStream)
.setCharset(StandardCharsets.UTF_8)
.setMarcListener(writer)
.build()