From 4608e89029eb82d5f215358acfcfc5d6b5dc96c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Sat, 18 Dec 2021 20:43:37 +0100 Subject: [PATCH] set maven repos --- gradle/repositories/maven.gradle | 4 ++++ .../java/org/xbib/marc/dialects/unimarc/UnimarcTest.java | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 gradle/repositories/maven.gradle diff --git a/gradle/repositories/maven.gradle b/gradle/repositories/maven.gradle new file mode 100644 index 0000000..ec58acb --- /dev/null +++ b/gradle/repositories/maven.gradle @@ -0,0 +1,4 @@ +repositories { + mavenLocal() + mavenCentral() +} diff --git a/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java b/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java index d7ba6a2..9138c3a 100644 --- a/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java +++ b/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java @@ -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()