From 10b665a824362c3d89a773dc353043cebd983eb5 Mon Sep 17 00:00:00 2001 From: Katja Luther Date: Mon, 22 Jan 2018 13:01:06 +0100 Subject: [PATCH] add test for export with unpublished taxa - continued --- .../cdm/io/cdmLight/out/CdmLightExportTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java b/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java index 596f015cb8..fd60d32725 100755 --- a/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java +++ b/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java @@ -269,13 +269,13 @@ public class CdmLightExportTest extends CdmTransactionalIntegrationTest{ count ++; } Assert.assertTrue("There should be 4 references", count == 5); + try{ stream = new ByteArrayInputStream(data.get(CdmLightExportTable.SYNONYM.getTableName())); - reader = new BufferedReader(new InputStreamReader(stream, Charset.forName("UTF-8"))); - count = 0; - while ((line = reader.readLine()) != null) { - count ++; + Assert.fail("There should not be a synonym table, because the only synonym is not public."); + }catch(NullPointerException e){ + } - Assert.assertTrue("There should be 1 synonym", count == 2); + } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); -- 2.34.1